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
This commit is contained in:
Chris Lattner 2004-10-17 23:49:11 +00:00
parent c7ff6c8029
commit 963869e41a
2 changed files with 2 additions and 2 deletions

View File

@ -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) {

View File

@ -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) {