summaryrefslogtreecommitdiffstats
path: root/llvm/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
commit510fbcd440c53c58df1ae79c0d93c18837c28166 (patch)
treeedd6ef6ff61f1c96828b228ebc82f747af3cc962 /llvm/lib/Target
parentd6598596f9dfc9a99276d315e72dea5036b28697 (diff)
downloadbcm5719-llvm-510fbcd440c53c58df1ae79c0d93c18837c28166.tar.gz
bcm5719-llvm-510fbcd440c53c58df1ae79c0d93c18837c28166.zip
Don't renumber the blocks here. This could cause problems later on if another
pass renumbers the blocks again. llvm-svn: 142258
Diffstat (limited to 'llvm/lib/Target')
-rw-r--r--llvm/lib/Target/ARM/ARMISelLowering.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/lib/Target/ARM/ARMISelLowering.cpp b/llvm/lib/Target/ARM/ARMISelLowering.cpp
index dffc7c6c4a3..c1ede78d7fb 100644
--- a/llvm/lib/Target/ARM/ARMISelLowering.cpp
+++ b/llvm/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.
OpenPOWER on IntegriCloud