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.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/qml/compiler/qv4codegen.cpp b/src/qml/compiler/qv4codegen.cpp
index 2a474eaad5..a0f1ce5879 100644
--- a/src/qml/compiler/qv4codegen.cpp
+++ b/src/qml/compiler/qv4codegen.cpp
@@ -2466,13 +2466,10 @@ bool Codegen::visit(WithStatement *ast)
if (hasError)
return false;
src = src.storeOnStack(); // trigger load before we setup the exception handler, so exceptions here go to the right place
+ src.loadInAccumulator();
ControlFlowWith flow(this);
- src.loadInAccumulator();
- Instruction::CallBuiltinPushScope pushScope;
- bytecodeGenerator->addInstruction(pushScope);
-
statement(ast->statement);
return false;