aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/compiler/qv4codegen.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/qml/compiler/qv4codegen.cpp')
-rw-r--r--src/qml/compiler/qv4codegen.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/qml/compiler/qv4codegen.cpp b/src/qml/compiler/qv4codegen.cpp
index 394568fbb8..d3129c983d 100644
--- a/src/qml/compiler/qv4codegen.cpp
+++ b/src/qml/compiler/qv4codegen.cpp
@@ -2279,7 +2279,7 @@ bool Codegen::visit(RegExpLiteral *ast)
return false;
_expr.result = Reference::fromTemp(this);
- _expr.result.isLiteral = true;
+ _expr.result.isReadonly = true;
Instruction::LoadRegExp instr;
instr.result = _expr.result.asLValue();
@@ -2294,7 +2294,7 @@ bool Codegen::visit(StringLiteral *ast)
return false;
_expr.result = Reference::fromTemp(this);
- _expr.result.isLiteral = true;
+ _expr.result.isReadonly = true;
Instruction::LoadRuntimeString instr;
instr.result = _expr.result.asLValue();
@@ -3308,7 +3308,7 @@ Codegen::Reference &Codegen::Reference::operator =(const Reference &other)
needsWriteBack = false;
isArgOrEval = other.isArgOrEval;
codegen = other.codegen;
- isLiteral = other.isLiteral;
+ isReadonly = other.isReadonly;
global = other.global;
return *this;
}