1
0
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:
Chris Lattner 2006-10-05 21:40:14 +00:00
parent 2e4743b6d1
commit eca9897bd5

View File

@ -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();
}