Fix inifite loop when running ecmascript tests
authorSimon Hausmann <simon.hausmann@digia.com>
Tue, 18 Jun 2013 10:59:51 +0000 (12:59 +0200)
committerErik Verbruggen <erik.verbruggen@digia.com>
Tue, 18 Jun 2013 11:00:00 +0000 (13:00 +0200)
Revert the initialization part of 42825af048ab2724e0d434178dcef1b23b4850ff in
the IR, apparently it is needed.

Change-Id: Ia415133ee2fb6cd060fa5a0e5da7b711ac98ddd1
Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
src/qml/qml/v4/qv4codegen.cpp

index ccd1ef1..310272c 100644 (file)
@@ -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) {