aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/compiler/qv4regalloc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/qml/compiler/qv4regalloc.cpp')
-rw-r--r--src/qml/compiler/qv4regalloc.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/qml/compiler/qv4regalloc.cpp b/src/qml/compiler/qv4regalloc.cpp
index 9d1f12ec47..a531fd337d 100644
--- a/src/qml/compiler/qv4regalloc.cpp
+++ b/src/qml/compiler/qv4regalloc.cpp
@@ -644,7 +644,9 @@ namespace {
class ResolutionPhase: protected StmtVisitor, protected ExprVisitor {
QVector<LifeTimeInterval> _intervals;
Function *_function;
+#if !defined(QT_NO_DEBUG)
RegAllocInfo *_info;
+#endif
const QHash<V4IR::Temp, int> &_assignedSpillSlots;
QHash<V4IR::Temp, LifeTimeInterval> _intervalForTemp;
const QVector<int> &_intRegs;
@@ -663,11 +665,16 @@ public:
const QVector<int> &intRegs, const QVector<int> &fpRegs)
: _intervals(intervals)
, _function(function)
+#if !defined(QT_NO_DEBUG)
, _info(info)
+#endif
, _assignedSpillSlots(assignedSpillSlots)
, _intRegs(intRegs)
, _fpRegs(fpRegs)
{
+#if defined(QT_NO_DEBUG)
+ Q_UNUSED(info)
+#endif
}
void run() {