OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
875f4ae
)
Simplify. Testing shows that this is not equivalent to BBI = CR.CaseBB + 1.
author
Duncan Sands
<baldrick@free.fr>
Sun, 6 Sep 2009 18:03:32 +0000
(18:03 +0000)
committer
Duncan Sands
<baldrick@free.fr>
Sun, 6 Sep 2009 18:03:32 +0000
(18:03 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81124
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp
b/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp
index
b0a6a6e
..
ce412e0
100644
(file)
--- 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);