Simplify. Testing shows that this is not equivalent to BBI = CR.CaseBB + 1.

llvm-svn: 81124
This commit is contained in:
Duncan Sands 2009-09-06 18:03:32 +00:00
parent faf1ced5ee
commit 3ee3c174b1
1 changed files with 2 additions and 4 deletions

View File

@ -1715,8 +1715,7 @@ bool SelectionDAGLowering::handleJTSwitchCase(CaseRec& CR,
// Figure out which block is immediately after the current one.
MachineFunction::iterator BBI = CR.CaseBB;
if (++BBI != FuncInfo.MF->end()) {}
++BBI;
const BasicBlock *LLVMBB = CR.CaseBB->getBasicBlock();
@ -1786,8 +1785,7 @@ bool SelectionDAGLowering::handleBTSplitSwitchCase(CaseRec& CR,
// Figure out which block is immediately after the current one.
MachineFunction::iterator BBI = CR.CaseBB;
if (++BBI != FuncInfo.MF->end()) {}
++BBI;
Case& FrontCase = *CR.Range.first;
Case& BackCase = *(CR.Range.second-1);