diff options
| author | Erik Verbruggen <erik.verbruggen@qt.io> | 2017-06-20 11:28:27 +0200 |
|---|---|---|
| committer | Lars Knoll <lars.knoll@qt.io> | 2017-06-21 09:19:59 +0000 |
| commit | 48d77ce4c83c2c1d2f3ee3d01c69550e115c3226 (patch) | |
| tree | b62edfd573502ded0ff436c250992684d3770567 /src/qml/compiler/qv4isel_moth.cpp | |
| parent | 5c86161fa28e951435a735a299b886fbfbe3bb16 (diff) | |
Add support for post increment/decrement
Change-Id: Ie3f03a548105fe49d29e3d60bf823435f21b0340
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/qml/compiler/qv4isel_moth.cpp')
| -rw-r--r-- | src/qml/compiler/qv4isel_moth.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/qml/compiler/qv4isel_moth.cpp b/src/qml/compiler/qv4isel_moth.cpp index 24fbe3c680..986529f600 100644 --- a/src/qml/compiler/qv4isel_moth.cpp +++ b/src/qml/compiler/qv4isel_moth.cpp @@ -754,15 +754,15 @@ void InstructionSelection::unop(IR::AluOp oper, IR::Expr *source, IR::Expr *targ addInstruction(ucompl); return; } - case IR::OpIncrement: { - Instruction::Increment inc; + case IR::OpPreIncrement: { + Instruction::PreIncrement inc; inc.source = getParam(source); inc.result = getResultParam(target); addInstruction(inc); return; } - case IR::OpDecrement: { - Instruction::Decrement dec; + case IR::OpPreDecrement: { + Instruction::PreDecrement dec; dec.source = getParam(source); dec.result = getResultParam(target); addInstruction(dec); |
