diff options
author | Lars Knoll <lars.knoll@digia.com> | 2014-03-18 09:20:45 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-03-19 08:14:56 +0100 |
commit | 3b2e7bf03b656b38ba7b24acf7ed38de555635f1 (patch) | |
tree | 0a7c9ae7ef73f1fb7d186e4470330b1668477604 /src/qml/compiler/qv4isel_moth.cpp | |
parent | 44ca5f1be03420978cc8d5468c4c40dcd5174a06 (diff) |
Use Q_ASSERT instead of assert
Change-Id: I6185b59a7dfd6977ce82581ab4385e07d78f13f6
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/compiler/qv4isel_moth.cpp')
-rw-r--r-- | src/qml/compiler/qv4isel_moth.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/qml/compiler/qv4isel_moth.cpp b/src/qml/compiler/qv4isel_moth.cpp index b8f56e990e..df0625b48e 100644 --- a/src/qml/compiler/qv4isel_moth.cpp +++ b/src/qml/compiler/qv4isel_moth.cpp @@ -118,7 +118,7 @@ inline QV4::Runtime::BinaryOperation aluOpFunction(IR::AluOp op) case IR::OpOr: return 0; default: - assert(!"Unknown AluOp"); + Q_ASSERT(!"Unknown AluOp"); return 0; } }; @@ -377,7 +377,7 @@ void InstructionSelection::run(int functionIndex) qSwap(_currentStatement, cs); int locals = frameSize(); - assert(locals >= 0); + Q_ASSERT(locals >= 0); IR::BasicBlock *exceptionHandler = 0; @@ -607,7 +607,7 @@ void InstructionSelection::loadQmlSingleton(const QString &name, IR::Temp *temp) void InstructionSelection::loadConst(IR::Const *sourceConst, IR::Temp *targetTemp) { - assert(sourceConst); + Q_ASSERT(sourceConst); Instruction::MoveConst move; move.source = convertToValue(sourceConst).asReturnedValue(); @@ -1009,7 +1009,7 @@ void InstructionSelection::prepareCallArgs(IR::ExprList *e, quint32 &argc, quint *args = argLocation; if (e) { // We need to move all the temps into the function arg array - assert(argLocation >= 0); + Q_ASSERT(argLocation >= 0); while (e) { if (IR::Const *c = e->expr->asConst()) { Instruction::MoveConst move; @@ -1467,7 +1467,7 @@ QByteArray InstructionSelection::squeezeCode() const } Param InstructionSelection::getParam(IR::Expr *e) { - assert(e); + Q_ASSERT(e); if (IR::Const *c = e->asConst()) { int idx = jsUnitGenerator()->registerConstant(convertToValue(c).asReturnedValue()); |