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 | 70597d4e5012bc63146847e688dec61d5abfae7f (patch) | |
tree | 19a9f4fa70dc89a968f4728d1fd981109a490635 | |
parent | 020b717f6aaad4fdd11897d27a82309af2b8fa16 (diff) | |
download | bcm5719-llvm-70597d4e5012bc63146847e688dec61d5abfae7f.tar.gz bcm5719-llvm-70597d4e5012bc63146847e688dec61d5abfae7f.zip |
Don't recycle loop variables.
llvm-svn: 129928
-rw-r--r-- | llvm/lib/CodeGen/SplitKit.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SplitKit.cpp b/llvm/lib/CodeGen/SplitKit.cpp index 703ac362907..c6e1bd57bd0 100644 --- a/llvm/lib/CodeGen/SplitKit.cpp +++ b/llvm/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. |