mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-09 11:25:55 +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));
|
BasicBlock *Succ = cast<BasicBlock>(SI.getOperand(i+1));
|
||||||
printPHICopiesForSuccessor (SI.getParent(), Succ, 2);
|
printPHICopiesForSuccessor (SI.getParent(), Succ, 2);
|
||||||
printBranchToBlock(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 << " break;\n";
|
||||||
}
|
}
|
||||||
Out << " }\n";
|
Out << " }\n";
|
||||||
|
@@ -1247,7 +1247,7 @@ void CWriter::visitSwitchInst(SwitchInst &SI) {
|
|||||||
BasicBlock *Succ = cast<BasicBlock>(SI.getOperand(i+1));
|
BasicBlock *Succ = cast<BasicBlock>(SI.getOperand(i+1));
|
||||||
printPHICopiesForSuccessor (SI.getParent(), Succ, 2);
|
printPHICopiesForSuccessor (SI.getParent(), Succ, 2);
|
||||||
printBranchToBlock(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 << " break;\n";
|
||||||
}
|
}
|
||||||
Out << " }\n";
|
Out << " }\n";
|
||||||
|
Reference in New Issue
Block a user