mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-17 21:29:20 +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();
|
||||
if (printColon)
|
||||
O << ':';
|
||||
if (printComment)
|
||||
if (printComment && MBB->getBasicBlock())
|
||||
O << '\t' << TAI->getCommentString() << MBB->getBasicBlock()->getName();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user