Do not make i have bigger scope that we need
authorChris Lattner <sabre@nondot.org>
Fri, 5 Nov 2004 04:47:37 +0000 (04:47 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 5 Nov 2004 04:47:37 +0000 (04:47 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17483 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/RegAllocLinearScan.cpp

index 2a5898a89d06479987a4b7c80e178e7cd6fcb537..3025d25f21b1e74e6ff2fd09b9a6eb0665fe2243 100644 (file)
@@ -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);