Fix build in release mode with forced asserts
authorKonstantin Ritt <ritt.ks@gmail.com>
Thu, 28 Nov 2013 18:31:04 +0000 (20:31 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Tue, 3 Dec 2013 10:20:42 +0000 (11:20 +0100)
Change-Id: I0e35533af7f65200a8bc3c4024c29344fa6f4b7a
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
src/qml/compiler/qv4regalloc.cpp

index 5d341ed..eaa9839 100644 (file)
@@ -897,9 +897,9 @@ private:
                 }
             }
             if (!moveFrom) {
-                Q_ASSERT(!_info->isPhiTarget(it.temp()) || it.isSplitFromInterval() || lifeTimeHole);
                 Q_UNUSED(lifeTimeHole);
 #if !defined(QT_NO_DEBUG)
+                Q_ASSERT(!_info->isPhiTarget(it.temp()) || it.isSplitFromInterval() || lifeTimeHole);
                 if (_info->def(it.temp()) != successorStart && !it.isSplitFromInterval()) {
                     const int successorEnd = successor->statements.last()->id;
                     const int idx = successor->in.indexOf(predecessor);