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 decfeca52d
commit 8b1a59a272
1 changed files with 1 additions and 1 deletions

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