aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/LiveIntervalAnalysis.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/CodeGen/LiveIntervalAnalysis.cpp')
-rw-r--r--lib/CodeGen/LiveIntervalAnalysis.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/LiveIntervalAnalysis.cpp b/lib/CodeGen/LiveIntervalAnalysis.cpp
index c491d49a96..8be14ee685 100644
--- a/lib/CodeGen/LiveIntervalAnalysis.cpp
+++ b/lib/CodeGen/LiveIntervalAnalysis.cpp
@@ -797,7 +797,7 @@ void LiveIntervals::addKillFlags() {
}
}
-
+#ifndef NDEBUG
static bool intervalRangesSane(const LiveInterval& li) {
if (li.empty()) {
return true;
@@ -814,6 +814,7 @@ static bool intervalRangesSane(const LiveInterval& li) {
return true;
}
+#endif
template <typename DefSetT>
static void handleMoveDefs(LiveIntervals& lis, SlotIndex origIdx,
@@ -1145,4 +1146,3 @@ LiveRange LiveIntervals::addLiveRangeToEndOfBlock(unsigned reg,
return LR;
}
-