[llvm-commits] [llvm] r149259 - /llvm/trunk/lib/CodeGen/LiveIntervalAnalysis.cpp

Matt Beaumont-Gay matthewbg at google.com
Mon Jan 30 11:26:20 PST 2012


Author: matthewbg
Date: Mon Jan 30 13:26:20 2012
New Revision: 149259

URL: http://llvm.org/viewvc/llvm-project?rev=149259&view=rev
Log:
Here's a new one: GCC was complaining about an only-used-in-asserts
*function*. Wrap the function in #ifndef NDEBUG.

Modified:
    llvm/trunk/lib/CodeGen/LiveIntervalAnalysis.cpp

Modified: llvm/trunk/lib/CodeGen/LiveIntervalAnalysis.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/LiveIntervalAnalysis.cpp?rev=149259&r1=149258&r2=149259&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/LiveIntervalAnalysis.cpp (original)
+++ llvm/trunk/lib/CodeGen/LiveIntervalAnalysis.cpp Mon Jan 30 13:26:20 2012
@@ -797,7 +797,7 @@
   }
 }
 
-
+#ifndef NDEBUG
 static bool intervalRangesSane(const LiveInterval& li) {
   if (li.empty()) {
     return true;
@@ -814,6 +814,7 @@
 
   return true;
 }
+#endif
 
 template <typename DefSetT>
 static void handleMoveDefs(LiveIntervals& lis, SlotIndex origIdx,
@@ -1145,4 +1146,3 @@
 
   return LR;
 }
-





More information about the llvm-commits mailing list