mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-16 11:30:51 +00:00
Fix -Asserts warning.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@87024 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ac18929801
commit
bf4af353ed
@ -443,10 +443,9 @@ MachineBasicBlock *PHIElimination::SplitCriticalEdge(MachineBasicBlock *A,
|
|||||||
MachineFunction *MF = A->getParent();
|
MachineFunction *MF = A->getParent();
|
||||||
MachineBasicBlock *NMBB = MF->CreateMachineBasicBlock(BB);
|
MachineBasicBlock *NMBB = MF->CreateMachineBasicBlock(BB);
|
||||||
MF->push_back(NMBB);
|
MF->push_back(NMBB);
|
||||||
const unsigned NewNum = NMBB->getNumber();
|
|
||||||
DEBUG(errs() << "PHIElimination splitting critical edge:"
|
DEBUG(errs() << "PHIElimination splitting critical edge:"
|
||||||
" BB#" << A->getNumber()
|
" BB#" << A->getNumber()
|
||||||
<< " -- BB#" << NewNum
|
<< " -- BB#" << NMBB->getNumber()
|
||||||
<< " -- BB#" << B->getNumber() << '\n');
|
<< " -- BB#" << B->getNumber() << '\n');
|
||||||
|
|
||||||
A->ReplaceUsesOfBlockWith(B, NMBB);
|
A->ReplaceUsesOfBlockWith(B, NMBB);
|
||||||
|
Loading…
Reference in New Issue
Block a user