diff options
author | Lang Hames <lhames@gmail.com> | 2009-11-12 01:24:08 +0000 |
---|---|---|
committer | Lang Hames <lhames@gmail.com> | 2009-11-12 01:24:08 +0000 |
commit | f035ce58bcf66c45d7a956668ae950f1eeeb8b20 (patch) | |
tree | ff928163ca1c7062289661838e0f8c8fd9dd8f23 /lib/CodeGen/PreAllocSplitting.cpp | |
parent | b8c124c3439ae5fad6a6c8a7aa0d3dd48787d265 (diff) |
Fixed an iteration condition in PreAllocSplitting. This should fix some miscompilations casued by PreAllocSplitting.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86919 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/PreAllocSplitting.cpp')
-rw-r--r-- | lib/CodeGen/PreAllocSplitting.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/PreAllocSplitting.cpp b/lib/CodeGen/PreAllocSplitting.cpp index e23024c085..f2168b625e 100644 --- a/lib/CodeGen/PreAllocSplitting.cpp +++ b/lib/CodeGen/PreAllocSplitting.cpp @@ -1400,7 +1400,7 @@ bool PreAllocSplitting::removeDeadSpills(SmallPtrSet<LiveInterval*, 8>& split) { // Otherwise, this is a load-store case, so DCE them. for (SmallPtrSet<MachineInstr*, 4>::iterator UI = VNUseCount[CurrVN].begin(), UE = VNUseCount[CurrVN].end(); - UI != UI; ++UI) { + UI != UE; ++UI) { LIs->RemoveMachineInstrFromMaps(*UI); (*UI)->eraseFromParent(); } |