forked from OSchip/llvm-project
Don't crash if an MBB doesn't have an LLVM BB
llvm-svn: 30757
This commit is contained in:
parent
decfeca52d
commit
8b1a59a272
|
@ -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