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.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/qml/compiler/qv4codegen.cpp b/src/qml/compiler/qv4codegen.cpp
index d276a9d477..ee3c22737b 100644
--- a/src/qml/compiler/qv4codegen.cpp
+++ b/src/qml/compiler/qv4codegen.cpp
@@ -2270,6 +2270,7 @@ bool Codegen::visit(RegExpLiteral *ast)
return false;
_expr.result = Reference::fromTemp(this);
+ _expr.result.isLiteral = true;
Instruction::LoadRegExp instr;
instr.result = _expr.result.asLValue();
@@ -2284,6 +2285,7 @@ bool Codegen::visit(StringLiteral *ast)
return false;
_expr.result = Reference::fromTemp(this);
+ _expr.result.isLiteral = true;
Instruction::LoadRuntimeString instr;
instr.result = _expr.result.asLValue();
@@ -3279,6 +3281,7 @@ Codegen::Reference &Codegen::Reference::operator =(const Reference &other)
needsWriteBack = false;
isArgOrEval = other.isArgOrEval;
codegen = other.codegen;
+ isLiteral = other.isLiteral;
return *this;
}