mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +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:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user