diff options
author | Dan Gohman <gohman@apple.com> | 2007-11-02 22:22:02 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2007-11-02 22:22:02 +0000 |
commit | b61f2f061feefd79623fadd21eee4f195b0b8e56 (patch) | |
tree | 211cb18d6b344b76fe0a00950bb88f4eada6f551 /lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | |
parent | 24384d1d1ea43cdbcc857a37be062b02188b2ebb (diff) |
Change illegal uses of ++ to uses of STLExtra.h's next function.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43651 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp')
-rw-r--r-- | lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index a5b161fbef..feb9d75932 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp @@ -1921,7 +1921,7 @@ unsigned SelectionDAGLowering::Clusterify(CaseVector& Cases, if (Cases.size()>=2) // Must recompute end() each iteration because it may be // invalidated by erase if we hold on to it - for (CaseItr I=Cases.begin(), J=++(Cases.begin()); J!=Cases.end(); ) { + for (CaseItr I=Cases.begin(), J=next(Cases.begin()); J!=Cases.end(); ) { int64_t nextValue = cast<ConstantInt>(J->Low)->getSExtValue(); int64_t currentValue = cast<ConstantInt>(I->High)->getSExtValue(); MachineBasicBlock* nextBB = J->BB; |