From: Argyrios Kyrtzidis Date: Wed, 19 Nov 2008 12:56:21 +0000 (+0000) Subject: Fix compilation error on MSVC. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=3713c0ba62113419a5c57ec3e5d034d1dd581b55;p=oota-llvm.git Fix compilation error on MSVC. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59629 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/RegAllocPBQP.cpp b/lib/CodeGen/RegAllocPBQP.cpp index e9271ef84ae..1f49199a4eb 100644 --- a/lib/CodeGen/RegAllocPBQP.cpp +++ b/lib/CodeGen/RegAllocPBQP.cpp @@ -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;