aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jit/qv4unop.cpp
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@theqtcompany.com>2015-10-09 10:03:11 +0200
committerSimon Hausmann <simon.hausmann@theqtcompany.com>2016-04-11 12:27:37 +0000
commitdb4a2fb7631391495eb4d92db9576272a3c2ec97 (patch)
treeb2536e53f52c3b1a2fea83be8a415a6f73f5ef70 /src/qml/jit/qv4unop.cpp
parent3a3703f298534fce8e2be5fc1f03d84fd32c1b73 (diff)
Convert comparison methods to the new runtime syntax
Change-Id: Iad4dadddefca2d6322d4f778272b75d64e1a746f Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
Diffstat (limited to 'src/qml/jit/qv4unop.cpp')
-rw-r--r--src/qml/jit/qv4unop.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qml/jit/qv4unop.cpp b/src/qml/jit/qv4unop.cpp
index 618f3b2796..6a32069ac4 100644
--- a/src/qml/jit/qv4unop.cpp
+++ b/src/qml/jit/qv4unop.cpp
@@ -51,7 +51,7 @@ using namespace JIT;
void Unop::generate(IR::Expr *source, IR::Expr *target)
{
- RuntimeCall call(-1);
+ RuntimeCall call;
const char *name = 0;
switch (op) {
case IR::OpNot:
@@ -70,7 +70,7 @@ void Unop::generate(IR::Expr *source, IR::Expr *target)
Q_UNREACHABLE();
} // switch
- Q_ASSERT(call.addr.offset >= 0);
+ Q_ASSERT(call.isValid());
_as->generateFunctionCallImp(target, name, call, Assembler::PointerToValue(source));
}