From bde92f3c03b6bc0f28163301538751ab0ed249ca Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 5 Nov 2004 04:47:37 +0000 Subject: [PATCH] Do not make i have bigger scope that we need llvm-svn: 17483 --- lib/CodeGen/RegAllocLinearScan.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/CodeGen/RegAllocLinearScan.cpp b/lib/CodeGen/RegAllocLinearScan.cpp index 2a5898a89d0..3025d25f21b 100644 --- a/lib/CodeGen/RegAllocLinearScan.cpp +++ b/lib/CodeGen/RegAllocLinearScan.cpp @@ -503,8 +503,8 @@ void RA::assignRegOrStackSlotAtInterval(LiveInterval* cur) // scan the rest and undo each interval that expired after t and // insert it in active (the next iteration of the algorithm will // put it in inactive if required) - IntervalPtrs::iterator i = handled_.begin(), e = handled_.end(); - for (; i != e; ++i) { + for (IntervalPtrs::iterator i = handled_.begin(), e = handled_.end(); + i != e; ++i) { if (!(*i)->expiredAt(earliestStart) && (*i)->expiredAt(cur->start())) { DEBUG(std::cerr << "\t\t\tundo changes for: " << **i << '\n'); active_.push_back(*i);