mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-17 21:29:20 +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:
parent
1cecd3a1d2
commit
efd02c750f
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user