commit | 8b1a59a272f30f9cc6d27184a3bbe28aec71aba7 | [log] [tgz] |
---|---|---|
author | Chris Lattner <sabre@nondot.org> | Thu Oct 05 21:40:14 2006 +0000 |
committer | Chris Lattner <sabre@nondot.org> | Thu Oct 05 21:40:14 2006 +0000 |
tree | 7f4723b0c0c3e5b24409da72b67e0f9eac38f558 | |
parent | decfeca52de563102c01e263cb741e9c1fd5ddc3 [diff] [blame] |
Don't crash if an MBB doesn't have an LLVM BB llvm-svn: 30757
diff --git a/llvm/lib/CodeGen/AsmPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter.cpp index 5311b2c..96a481f 100644 --- a/llvm/lib/CodeGen/AsmPrinter.cpp +++ b/llvm/lib/CodeGen/AsmPrinter.cpp
@@ -857,7 +857,7 @@ << MBB->getNumber(); if (printColon) O << ':'; - if (printComment) + if (printComment && MBB->getBasicBlock()) O << '\t' << TAI->getCommentString() << MBB->getBasicBlock()->getName(); }