summaryrefslogtreecommitdiff
path: root/src/qml/compiler/qv4ssa.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/qml/compiler/qv4ssa.cpp')
-rw-r--r--src/qml/compiler/qv4ssa.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/qml/compiler/qv4ssa.cpp b/src/qml/compiler/qv4ssa.cpp
index 8cf5fac760..72a4a9e751 100644
--- a/src/qml/compiler/qv4ssa.cpp
+++ b/src/qml/compiler/qv4ssa.cpp
@@ -1993,8 +1993,8 @@ private:
case OpUPlus:
case OpUMinus:
case OpNot:
- case OpIncrement:
- case OpDecrement:
+ case OpPreIncrement:
+ case OpPreDecrement:
if (e->expr->type == VarType || e->expr->type == StringType || e->expr->type == QObjectType)
markAsSideEffect();
break;
@@ -2342,8 +2342,8 @@ private:
case OpCompl: _ty.type = SInt32Type; return;
case OpNot: _ty.type = BoolType; return;
- case OpIncrement:
- case OpDecrement:
+ case OpPreIncrement:
+ case OpPreDecrement:
Q_ASSERT(!"Inplace operators should have been removed!");
Q_UNREACHABLE();
default:
@@ -4178,11 +4178,11 @@ void optimizeSSA(StatementWorklist &W, DefUses &defUses, DominatorTree &df)
constOperand->type = SInt32Type;
doneSomething = true;
break;
- case OpIncrement:
+ case OpPreIncrement:
constOperand->value = constOperand->value + 1;
doneSomething = true;
break;
- case OpDecrement:
+ case OpPreDecrement:
constOperand->value = constOperand->value - 1;
doneSomething = true;
break;