Fix compilation error on MSVC.
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Wed, 19 Nov 2008 12:56:21 +0000 (12:56 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Wed, 19 Nov 2008 12:56:21 +0000 (12:56 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59629 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/RegAllocPBQP.cpp

index e9271ef84aed5649b02c4bdf9585ca459bf898c8..1f49199a4ebbf362c536d3e7bac5e4fc2773fcb2 100644 (file)
@@ -731,7 +731,7 @@ void PBQPRegAlloc::finalizeAlloc() const {
   typedef LiveInterval::Ranges::const_iterator LRIterator;
 
   // First allocate registers for the empty intervals.
-  for (LiveIntervalSet::iterator
+  for (LiveIntervalSet::const_iterator
         itr = emptyVRegIntervals.begin(), end = emptyVRegIntervals.end();
          itr != end; ++itr) {
     LiveInterval *li = *itr;