diff options
author | Simon Hausmann <simon.hausmann@digia.com> | 2013-08-19 08:31:35 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-08-19 16:11:49 +0200 |
commit | 90aaff37be419ca1f1da40df64424c0d88bfaf19 (patch) | |
tree | 732af65cacdbddc8e95e7bbc834fec926f71e818 /src/qml/compiler/qv4compileddata.cpp | |
parent | a57273f033f06a80b72b7a8c06faa08aee392cd1 (diff) |
Cleanup: Determine the root/entry function in isel independent code
Change-Id: I99004b872be9bd7d9dd0c798eb2d9bb4ddfa4cbd
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'src/qml/compiler/qv4compileddata.cpp')
-rw-r--r-- | src/qml/compiler/qv4compileddata.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qml/compiler/qv4compileddata.cpp b/src/qml/compiler/qv4compileddata.cpp index 1ecb7f9b93..a434f6c0dc 100644 --- a/src/qml/compiler/qv4compileddata.cpp +++ b/src/qml/compiler/qv4compileddata.cpp @@ -131,13 +131,13 @@ QV4::Function *CompilationUnit::linkToEngine(ExecutionEngine *engine) } } - QV4::Function *entry = linkBackendToEngine(engine); + linkBackendToEngine(engine); runtimeFunctionsSortedByAddress.resize(runtimeFunctions.size()); memcpy(runtimeFunctionsSortedByAddress.data(), runtimeFunctions.data(), runtimeFunctions.size() * sizeof(QV4::Function*)); qSort(runtimeFunctionsSortedByAddress.begin(), runtimeFunctionsSortedByAddress.end(), functionSortHelper); - return entry; + return runtimeFunctions[data->indexOfRootFunction]; } void CompilationUnit::markObjects() |