aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2009-09-06 18:03:32 +0000
committerDuncan Sands <baldrick@free.fr>2009-09-06 18:03:32 +0000
commit514985297520dbe79441a7af743a5941422a1b69 (patch)
tree5f16ac0e3528f6d129cdc6c2df39277c0fdc5704
parent875f4ae789ad15dc04771f535a7568700091d0a9 (diff)
downloadexternal_llvm-514985297520dbe79441a7af743a5941422a1b69.zip
external_llvm-514985297520dbe79441a7af743a5941422a1b69.tar.gz
external_llvm-514985297520dbe79441a7af743a5941422a1b69.tar.bz2
Simplify. Testing shows that this is not equivalent to BBI = CR.CaseBB + 1.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81124 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp
index b0a6a6e..ce412e0 100644
--- a/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp
+++ b/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp
@@ -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);