From 5026bc3a8605c2b84ec809892dce72c5ad16cbbf Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Thu, 12 Nov 2009 20:53:43 +0000 Subject: [PATCH] Fix -Asserts warning. llvm-svn: 87024 --- llvm/lib/CodeGen/PHIElimination.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/llvm/lib/CodeGen/PHIElimination.cpp b/llvm/lib/CodeGen/PHIElimination.cpp index 53a7ea218870..58af9c54b7c0 100644 --- a/llvm/lib/CodeGen/PHIElimination.cpp +++ b/llvm/lib/CodeGen/PHIElimination.cpp @@ -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);