aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/compiler/qv4ssa.cpp
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@digia.com>2013-09-30 15:41:24 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-10-02 16:07:33 +0200
commit1e454c8aa6ad0782eee1c8c94ac2780954a08351 (patch)
treee3be185e878972ff018e9610fea15248877ca499 /src/qml/compiler/qv4ssa.cpp
parent430dfd326cb9d8dab8ebd11e83dd52e6d55c4229 (diff)
Remove more uses of Value
Change-Id: I889e760f75b485a28e1f2a2c26b2337ae9bfafac Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/compiler/qv4ssa.cpp')
-rw-r--r--src/qml/compiler/qv4ssa.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/qml/compiler/qv4ssa.cpp b/src/qml/compiler/qv4ssa.cpp
index 3d6cd442fd..deadf471ea 100644
--- a/src/qml/compiler/qv4ssa.cpp
+++ b/src/qml/compiler/qv4ssa.cpp
@@ -2223,8 +2223,8 @@ bool tryOptimizingComparison(Expr *&expr)
if (!rightConst || rightConst->type == StringType || rightConst->type == VarType)
return false;
- QV4::Value l = convertToValue(leftConst);
- QV4::Value r = convertToValue(rightConst);
+ QV4::Primitive l = convertToValue(leftConst);
+ QV4::Primitive r = convertToValue(rightConst);
switch (b->op) {
case OpGt:
@@ -2439,8 +2439,8 @@ void optimizeSSA(Function *function, DefUsesCalculator &defUses)
if (!rightConst || rightConst->type == StringType || rightConst->type == VarType)
continue;
- QV4::Value lc = convertToValue(leftConst);
- QV4::Value rc = convertToValue(rightConst);
+ QV4::Primitive lc = convertToValue(leftConst);
+ QV4::Primitive rc = convertToValue(rightConst);
double l = __qmljs_to_number(&lc);
double r = __qmljs_to_number(&rc);