Print a semicolon for the unreacahble instruction. This fixes problems

where C requires semicolons in some cases to indicate null statements.

llvm-svn: 17107
This commit is contained in:
Chris Lattner 2004-10-17 23:49:11 +00:00
parent 6a792feb02
commit 53058663aa
1 changed files with 1 additions and 1 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) {