mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
Fix the 3 regressions last night, due to my buggy patch from yesterday.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20689 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1247,7 +1247,7 @@ void CWriter::visitSwitchInst(SwitchInst &SI) {
|
||||
BasicBlock *Succ = cast<BasicBlock>(SI.getOperand(i+1));
|
||||
printPHICopiesForSuccessor (SI.getParent(), Succ, 2);
|
||||
printBranchToBlock(SI.getParent(), Succ, 2);
|
||||
if (Succ == next(Function::iterator(SI.getParent())))
|
||||
if (Function::iterator(Succ) == next(Function::iterator(SI.getParent())))
|
||||
Out << " break;\n";
|
||||
}
|
||||
Out << " }\n";
|
||||
|
@@ -1247,7 +1247,7 @@ void CWriter::visitSwitchInst(SwitchInst &SI) {
|
||||
BasicBlock *Succ = cast<BasicBlock>(SI.getOperand(i+1));
|
||||
printPHICopiesForSuccessor (SI.getParent(), Succ, 2);
|
||||
printBranchToBlock(SI.getParent(), Succ, 2);
|
||||
if (Succ == next(Function::iterator(SI.getParent())))
|
||||
if (Function::iterator(Succ) == next(Function::iterator(SI.getParent())))
|
||||
Out << " break;\n";
|
||||
}
|
||||
Out << " }\n";
|
||||
|
Reference in New Issue
Block a user