summaryrefslogtreecommitdiff
path: root/lib/CodeGen/RegAllocLinearScan.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-11-05 04:47:37 +0000
committerChris Lattner <sabre@nondot.org>2004-11-05 04:47:37 +0000
commit41ffe4b5313fe9c25a2aa91f01a9824d22c5351e (patch)
tree6343b7aeb3029dca1a6ec55f253ad7ffaecc847c /lib/CodeGen/RegAllocLinearScan.cpp
parent183f2eb860a6c97523d0f7f13ebdb5126167ceb6 (diff)
downloadllvm-41ffe4b5313fe9c25a2aa91f01a9824d22c5351e.tar.gz
llvm-41ffe4b5313fe9c25a2aa91f01a9824d22c5351e.tar.bz2
llvm-41ffe4b5313fe9c25a2aa91f01a9824d22c5351e.tar.xz
Do not make i have bigger scope that we need
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17483 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/RegAllocLinearScan.cpp')
-rw-r--r--lib/CodeGen/RegAllocLinearScan.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/RegAllocLinearScan.cpp b/lib/CodeGen/RegAllocLinearScan.cpp
index 2a5898a89d..3025d25f21 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);