mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 19:52:54 +01:00
Don't crash if an MBB doesn't have an LLVM BB
llvm-svn: 30757
This commit is contained in:
parent
2e4743b6d1
commit
eca9897bd5
@ -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