diff options
author | Chris Lattner <sabre@nondot.org> | 2004-10-17 23:49:11 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-10-17 23:49:11 +0000 |
commit | 963869e41af4f0f180cd13d3ad50f778f336c3b0 (patch) | |
tree | 587e65e3c3f8f20e8441898e3c84c13156caec88 | |
parent | c7ff6c8029ac3595e87ea80ad7a08eafbcca52b1 (diff) | |
download | external_llvm-963869e41af4f0f180cd13d3ad50f778f336c3b0.zip external_llvm-963869e41af4f0f180cd13d3ad50f778f336c3b0.tar.gz external_llvm-963869e41af4f0f180cd13d3ad50f778f336c3b0.tar.bz2 |
Print a semicolon for the unreacahble instruction. This fixes problems
where C requires semicolons in some cases to indicate null statements.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17107 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Target/CBackend/CBackend.cpp | 2 | ||||
-rw-r--r-- | lib/Target/CBackend/Writer.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/CBackend/CBackend.cpp b/lib/Target/CBackend/CBackend.cpp index 96eb684..9e835f6 100644 --- a/lib/Target/CBackend/CBackend.cpp +++ b/lib/Target/CBackend/CBackend.cpp @@ -1212,7 +1212,7 @@ void CWriter::visitSwitchInst(SwitchInst &SI) { } void CWriter::visitUnreachableInst(UnreachableInst &I) { - Out << " /*UNREACHABLE*/\n"; + Out << " /*UNREACHABLE*/;\n"; } bool CWriter::isGotoCodeNecessary(BasicBlock *From, BasicBlock *To) { diff --git a/lib/Target/CBackend/Writer.cpp b/lib/Target/CBackend/Writer.cpp index 96eb684..9e835f6 100644 --- a/lib/Target/CBackend/Writer.cpp +++ b/lib/Target/CBackend/Writer.cpp @@ -1212,7 +1212,7 @@ void CWriter::visitSwitchInst(SwitchInst &SI) { } void CWriter::visitUnreachableInst(UnreachableInst &I) { - Out << " /*UNREACHABLE*/\n"; + Out << " /*UNREACHABLE*/;\n"; } bool CWriter::isGotoCodeNecessary(BasicBlock *From, BasicBlock *To) { |