mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-05-22 03:39:03 +00:00
Don't crash if an MBB doesn't have an LLVM BB
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30757 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
39b5a21259
commit
9c78ecb511
@ -857,7 +857,7 @@ void AsmPrinter::printBasicBlockLabel(const MachineBasicBlock *MBB,
|
|||||||
<< MBB->getNumber();
|
<< MBB->getNumber();
|
||||||
if (printColon)
|
if (printColon)
|
||||||
O << ':';
|
O << ':';
|
||||||
if (printComment)
|
if (printComment && MBB->getBasicBlock())
|
||||||
O << '\t' << TAI->getCommentString() << MBB->getBasicBlock()->getName();
|
O << '\t' << TAI->getCommentString() << MBB->getBasicBlock()->getName();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user