aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@digia.com>2013-06-18 12:59:51 +0200
committerErik Verbruggen <erik.verbruggen@digia.com>2013-06-18 13:00:00 +0200
commiteec01627c7fcf9b2b25121a9c72b46d9876abc66 (patch)
tree099f58adb55e9d7ef12d0a964d2dfbe0f0b5af78 /src
parent2b2b8c8a296105cdad7255dacacd9db7c8e19d6a (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>
Diffstat (limited to 'src')
-rw-r--r--src/qml/qml/v4/qv4codegen.cpp1
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) {