[llvm] r209147 - Use range for
Matt Arsenault
Matthew.Arsenault at amd.com
Mon May 19 10:52:49 PDT 2014
Author: arsenm
Date: Mon May 19 12:52:48 2014
New Revision: 209147
URL: http://llvm.org/viewvc/llvm-project?rev=209147&view=rev
Log:
Use range for
Modified:
llvm/trunk/lib/Transforms/Scalar/StructurizeCFG.cpp
Modified: llvm/trunk/lib/Transforms/Scalar/StructurizeCFG.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/StructurizeCFG.cpp?rev=209147&r1=209146&r2=209147&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/StructurizeCFG.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/StructurizeCFG.cpp Mon May 19 12:52:48 2014
@@ -454,10 +454,7 @@ void StructurizeCFG::insertConditions(bo
Value *Default = Loops ? BoolTrue : BoolFalse;
SSAUpdater PhiInserter;
- for (BranchVector::iterator I = Conds.begin(),
- E = Conds.end(); I != E; ++I) {
-
- BranchInst *Term = *I;
+ for (BranchInst *Term : Conds) {
assert(Term->isConditional());
BasicBlock *Parent = Term->getParent();
More information about the llvm-commits
mailing list