aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBob Wilson <bob.wilson@apple.com>2009-10-13 17:29:13 +0000
committerBob Wilson <bob.wilson@apple.com>2009-10-13 17:29:13 +0000
commitf0976f41d9100957bf1eca01436dc8546d95ee39 (patch)
treee1b08f310abb0e508af6470eed0e8173b4c328b8
parent897be2a525c03c3c2331ac5ef74a2e7483434e4d (diff)
downloadexternal_llvm-f0976f41d9100957bf1eca01436dc8546d95ee39.zip
external_llvm-f0976f41d9100957bf1eca01436dc8546d95ee39.tar.gz
external_llvm-f0976f41d9100957bf1eca01436dc8546d95ee39.tar.bz2
Fix regression introduced by r83894.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@83982 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Target/ARM/ARMConstantIslandPass.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Target/ARM/ARMConstantIslandPass.cpp b/lib/Target/ARM/ARMConstantIslandPass.cpp
index d9d7763..309e3ba 100644
--- a/lib/Target/ARM/ARMConstantIslandPass.cpp
+++ b/lib/Target/ARM/ARMConstantIslandPass.cpp
@@ -933,13 +933,14 @@ static inline unsigned getUnconditionalBrDisp(int Opc) {
///
MachineBasicBlock *ARMConstantIslands::AcceptWater(water_iterator IP) {
DEBUG(errs() << "found water in range\n");
+ MachineBasicBlock *WaterBB = *IP;
// Remove the original WaterList entry; we want subsequent
// insertions in this vicinity to go after the one we're
// about to insert. This considerably reduces the number
// of times we have to move the same CPE more than once.
WaterList.erase(IP);
// CPE goes before following block (NewMBB).
- return next(MachineFunction::iterator(*IP));
+ return next(MachineFunction::iterator(WaterBB));
}
/// LookForWater - look for an existing entry in the WaterList in which