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 /lib/Target/CBackend/Writer.cpp | |
parent | c7ff6c8029ac3595e87ea80ad7a08eafbcca52b1 (diff) |
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
Diffstat (limited to 'lib/Target/CBackend/Writer.cpp')
-rw-r--r-- | lib/Target/CBackend/Writer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/CBackend/Writer.cpp b/lib/Target/CBackend/Writer.cpp index 96eb684d29..9e835f6093 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) { |