Fix -Asserts warning.

llvm-svn: 87024
This commit is contained in:
Daniel Dunbar 2009-11-12 20:53:43 +00:00
parent e3ae25b3d8
commit 5026bc3a86
1 changed files with 1 additions and 2 deletions

View File

@ -443,10 +443,9 @@ MachineBasicBlock *PHIElimination::SplitCriticalEdge(MachineBasicBlock *A,
MachineFunction *MF = A->getParent();
MachineBasicBlock *NMBB = MF->CreateMachineBasicBlock(BB);
MF->push_back(NMBB);
const unsigned NewNum = NMBB->getNumber();
DEBUG(errs() << "PHIElimination splitting critical edge:"
" BB#" << A->getNumber()
<< " -- BB#" << NewNum
<< " -- BB#" << NMBB->getNumber()
<< " -- BB#" << B->getNumber() << '\n');
A->ReplaceUsesOfBlockWith(B, NMBB);