Don't renumber the blocks here. This could cause problems later on if another

pass renumbers the blocks again.

llvm-svn: 142258
This commit is contained in:
Bill Wendling 2011-10-17 21:32:56 +00:00
parent d6598596f9
commit 510fbcd440
1 changed files with 1 additions and 3 deletions

View File

@ -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.