diff options
author | Simon Hausmann <simon.hausmann@digia.com> | 2013-06-18 12:59:51 +0200 |
---|---|---|
committer | Erik Verbruggen <erik.verbruggen@digia.com> | 2013-06-18 13:00:00 +0200 |
commit | eec01627c7fcf9b2b25121a9c72b46d9876abc66 (patch) | |
tree | 099f58adb55e9d7ef12d0a964d2dfbe0f0b5af78 | |
parent | 2b2b8c8a296105cdad7255dacacd9db7c8e19d6a (diff) |
Fix inifite loop when running ecmascript tests
Revert the initialization part of 42825af048ab2724e0d434178dcef1b23b4850ff in
the IR, apparently it is needed.
Change-Id: Ia415133ee2fb6cd060fa5a0e5da7b711ac98ddd1
Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
-rw-r--r-- | src/qml/qml/v4/qv4codegen.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/qml/qml/v4/qv4codegen.cpp b/src/qml/qml/v4/qv4codegen.cpp index ccd1ef1d26..310272c784 100644 --- a/src/qml/qml/v4/qv4codegen.cpp +++ b/src/qml/qml/v4/qv4codegen.cpp @@ -1844,6 +1844,7 @@ V4IR::Function *Codegen::defineFunction(const QString &name, AST::Node *ast, function->LOCAL(local); unsigned t = entryBlock->newTemp(); (*it).index = t; + entryBlock->MOVE(entryBlock->TEMP(t), entryBlock->CONST(V4IR::UndefinedType, 0)); } } else { if (!_env->isStrict) { |