summaryrefslogtreecommitdiff
path: root/src/qml/compiler/qv4isel_p.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/qml/compiler/qv4isel_p.cpp')
-rw-r--r--src/qml/compiler/qv4isel_p.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qml/compiler/qv4isel_p.cpp b/src/qml/compiler/qv4isel_p.cpp
index 66f8ca5327..df879f5796 100644
--- a/src/qml/compiler/qv4isel_p.cpp
+++ b/src/qml/compiler/qv4isel_p.cpp
@@ -78,8 +78,8 @@ QV4::CompiledData::CompilationUnit *EvalInstructionSelection::compile()
Function *rootFunction = irModule->rootFunction;
if (!rootFunction)
return 0;
- foreach (V4IR::Function *f, irModule->functions)
- run(f);
+ for (int i = 0; i < irModule->functions.size(); ++i)
+ run(i);
return backendCompileStep();
}