mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-05 18:37:17 +00:00
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:
parent
c7ff6c8029
commit
963869e41a
@ -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) {
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user