[llvm-commits] CVS: llvm/lib/Target/CBackend/Writer.cpp

Chris Lattner lattner at cs.uiuc.edu
Sun Oct 17 16:49:22 PDT 2004



Changes in directory llvm/lib/Target/CBackend:

Writer.cpp updated: 1.203 -> 1.204
---
Log message:

Print a semicolon for the unreacahble instruction.  This fixes problems
where C requires semicolons in some cases to indicate null statements.


---
Diffs of the changes:  (+1 -1)

Index: llvm/lib/Target/CBackend/Writer.cpp
diff -u llvm/lib/Target/CBackend/Writer.cpp:1.203 llvm/lib/Target/CBackend/Writer.cpp:1.204
--- llvm/lib/Target/CBackend/Writer.cpp:1.203	Sun Oct 17 12:48:59 2004
+++ llvm/lib/Target/CBackend/Writer.cpp	Sun Oct 17 18:49:11 2004
@@ -1212,7 +1212,7 @@
 }
 
 void CWriter::visitUnreachableInst(UnreachableInst &I) {
-  Out << "  /*UNREACHABLE*/\n";
+  Out << "  /*UNREACHABLE*/;\n";
 }
 
 bool CWriter::isGotoCodeNecessary(BasicBlock *From, BasicBlock *To) {






More information about the llvm-commits mailing list