summaryrefslogtreecommitdiff
path: root/lib/Target
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2011-10-17 21:32:56 +0000
committerBill Wendling <isanbard@gmail.com>2011-10-17 21:32:56 +0000
commita48ed4fc8fddc819460e7ea0646709a7fd701e67 (patch)
tree4433bdbbf7e49286eb35f3dbacbea9604e0ae37c /lib/Target
parent9ca9acfaff3c5e9f9dc86b830ef0255610e254e7 (diff)
downloadllvm-a48ed4fc8fddc819460e7ea0646709a7fd701e67.tar.gz
llvm-a48ed4fc8fddc819460e7ea0646709a7fd701e67.tar.bz2
llvm-a48ed4fc8fddc819460e7ea0646709a7fd701e67.tar.xz
Don't renumber the blocks here. This could cause problems later on if another
pass renumbers the blocks again. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142258 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target')
-rw-r--r--lib/Target/ARM/ARMISelLowering.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/Target/ARM/ARMISelLowering.cpp b/lib/Target/ARM/ARMISelLowering.cpp
index dffc7c6c4a..c1ede78d7f 100644
--- a/lib/Target/ARM/ARMISelLowering.cpp
+++ b/lib/Target/ARM/ARMISelLowering.cpp
@@ -5741,12 +5741,10 @@ EmitSjLjDispatchBlock(MachineInstr *MI, MachineBasicBlock *MBB) const {
MachineBasicBlock *DispContBB = MF->CreateMachineBasicBlock();
DispatchBB->addSuccessor(DispContBB);
- // Insert and renumber MBBs.
- MachineBasicBlock *Last = &MF->back();
+ // Insert and MBBs.
MF->insert(MF->end(), DispatchBB);
MF->insert(MF->end(), DispContBB);
MF->insert(MF->end(), TrapBB);
- MF->RenumberBlocks(Last);
// Insert code into the entry block that creates and registers the function
// context.