[llvm-commits] CVS: llvm/lib/CodeGen/AsmPrinter.cpp
Chris Lattner
sabre at nondot.org
Thu Oct 5 14:40:29 PDT 2006
Changes in directory llvm/lib/CodeGen:
AsmPrinter.cpp updated: 1.106 -> 1.107
---
Log message:
Don't crash if an MBB doesn't have an LLVM BB
---
Diffs of the changes: (+1 -1)
AsmPrinter.cpp | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
Index: llvm/lib/CodeGen/AsmPrinter.cpp
diff -u llvm/lib/CodeGen/AsmPrinter.cpp:1.106 llvm/lib/CodeGen/AsmPrinter.cpp:1.107
--- llvm/lib/CodeGen/AsmPrinter.cpp:1.106 Wed Oct 4 22:13:28 2006
+++ llvm/lib/CodeGen/AsmPrinter.cpp Thu Oct 5 16:40:14 2006
@@ -857,7 +857,7 @@
<< MBB->getNumber();
if (printColon)
O << ':';
- if (printComment)
+ if (printComment && MBB->getBasicBlock())
O << '\t' << TAI->getCommentString() << MBB->getBasicBlock()->getName();
}
More information about the llvm-commits
mailing list