diff options
author | Matt Beaumont-Gay <matthewbg@google.com> | 2011-04-21 19:46:23 +0000 |
---|---|---|
committer | Matt Beaumont-Gay <matthewbg@google.com> | 2011-04-21 19:46:23 +0000 |
commit | ae5fbeec23cff833cad9e6b2a638efd1f48bef49 (patch) | |
tree | 60bf2db519305acb8aef82818cf7292a90dfc9ce /lib | |
parent | 5928046306d8bbe7db35707c294689f515f90e56 (diff) | |
download | external_llvm-ae5fbeec23cff833cad9e6b2a638efd1f48bef49.zip external_llvm-ae5fbeec23cff833cad9e6b2a638efd1f48bef49.tar.gz external_llvm-ae5fbeec23cff833cad9e6b2a638efd1f48bef49.tar.bz2 |
Don't recycle loop variables.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129928 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/CodeGen/SplitKit.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/SplitKit.cpp b/lib/CodeGen/SplitKit.cpp index 703ac36..c6e1bd5 100644 --- a/lib/CodeGen/SplitKit.cpp +++ b/lib/CodeGen/SplitKit.cpp @@ -1001,7 +1001,7 @@ void SplitEditor::finish(SmallVectorImpl<unsigned> *LRMap) { DEBUG(dbgs() << " " << NumComp << " components: " << *li << '\n'); SmallVector<LiveInterval*, 8> dups; dups.push_back(li); - for (unsigned i = 1; i != NumComp; ++i) + for (unsigned j = 1; j != NumComp; ++j) dups.push_back(&Edit->create(LIS, VRM)); ConEQ.Distribute(&dups[0], MRI); // The new intervals all map back to i. |