aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/compiler
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@qt.io>2019-01-08 09:57:00 +0100
committerSimon Hausmann <simon.hausmann@qt.io>2019-01-29 07:15:40 +0000
commit454676a8745a7334539449562a5fda47db2fc2ca (patch)
tree1367f795a74f8de75ccde5b9c0bdeecf38a25330 /src/qml/compiler
parentdea0f1b1e69cd313f81dc998e973428161d411e9 (diff)
Fix byte code register dump output
The first register allocated in bindings is typically the return address register, which was erroneously shown as argument 0 instead of register 0. Change-Id: I00add0b5b1cd08a4c9b1d42ffe79d2ea7e5a73cf Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/qml/compiler')
-rw-r--r--src/qml/compiler/qv4instr_moth.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/compiler/qv4instr_moth.cpp b/src/qml/compiler/qv4instr_moth.cpp
index 6edf5a4ae7..83aca3a02c 100644
--- a/src/qml/compiler/qv4instr_moth.cpp
+++ b/src/qml/compiler/qv4instr_moth.cpp
@@ -157,7 +157,7 @@ QString dumpRegister(int reg, int nFormals)
else if (reg == CallData::Argc)
return QStringLiteral("(argc)");
reg -= CallData::OffsetCount;
- if (reg <= nFormals)
+ if (reg < nFormals)
return QStringLiteral("a%1").arg(reg);
reg -= nFormals;
return QStringLiteral("r%1").arg(reg);