summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
diff options
context:
space:
mode:
authorMatt Beaumont-Gay <matthewbg@google.com>2012-01-30 19:26:20 +0000
committerMatt Beaumont-Gay <matthewbg@google.com>2012-01-30 19:26:20 +0000
commit9cc6d524ea8cd266df1a0a0904bb431ec2c4fc27 (patch)
treee23cb70a6314c4285578b12d2e96a31cbb8f3de4 /llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
parent6523e46941fdfa7b49f821620f0e2d8c6365dd68 (diff)
downloadbcm5719-llvm-9cc6d524ea8cd266df1a0a0904bb431ec2c4fc27.tar.gz
bcm5719-llvm-9cc6d524ea8cd266df1a0a0904bb431ec2c4fc27.zip
Here's a new one: GCC was complaining about an only-used-in-asserts
*function*. Wrap the function in #ifndef NDEBUG. llvm-svn: 149259
Diffstat (limited to 'llvm/lib/CodeGen/LiveIntervalAnalysis.cpp')
-rw-r--r--llvm/lib/CodeGen/LiveIntervalAnalysis.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp b/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
index c491d49a969..8be14ee6853 100644
--- a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
+++ b/llvm/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;
}
-
OpenPOWER on IntegriCloud