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();
|
<< 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…
Reference in New Issue