diff options
Diffstat (limited to 'src/qml/compiler/qv4codegen.cpp')
| -rw-r--r-- | src/qml/compiler/qv4codegen.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qml/compiler/qv4codegen.cpp b/src/qml/compiler/qv4codegen.cpp index f6ac4e7957..e3205d9d8d 100644 --- a/src/qml/compiler/qv4codegen.cpp +++ b/src/qml/compiler/qv4codegen.cpp @@ -2152,7 +2152,7 @@ bool Codegen::visit(ForEachStatement *ast) in.link(); - Reference lhs = expression(ast->initialiser); + Reference lhs = expression(ast->initialiser).asLValue(); obj.loadInAccumulator(); Instruction::ForeachNextPropertyName nextPropInstr; @@ -2291,7 +2291,7 @@ bool Codegen::visit(LocalForEachStatement *ast) BytecodeGenerator::Label body = bytecodeGenerator->label(); - Reference it = referenceForName(ast->declaration->name.toString(), true); + Reference it = referenceForName(ast->declaration->name.toString(), true).asLValue(); statement(ast->statement); in.link(); |
