Need to increment the iterator.
[oota-llvm.git] / lib / CodeGen / RegAllocLinearScan.cpp
index e77a9e6839e8c029999f2e4041dd44751cb63046..9f08b1db09f78e35c51dadaf201fc562c59b4951 100644 (file)
@@ -342,7 +342,7 @@ void RALinScan::linearScan()
 
   // expire any remaining inactive intervals
   DEBUG(for (IntervalPtrs::reverse_iterator
-               i = inactive_.rbegin(); i != inactive_.rend(); )
+               i = inactive_.rbegin(); i != inactive_.rend(); ++i)
         DOUT << "\tinterval " << *i->first << " expired\n");
   inactive_.clear();