Range-ify for loop; NFC
authorGeorge Burgess IV <george.burgess.iv@gmail.com>
Sat, 5 May 2018 04:52:26 +0000 (04:52 +0000)
committerGeorge Burgess IV <george.burgess.iv@gmail.com>
Sat, 5 May 2018 04:52:26 +0000 (04:52 +0000)
llvm-svn: 331582

llvm/lib/Transforms/Utils/SimplifyCFG.cpp

index 2cf2d27725c4484576c533f63dfae847462d2a94..424a8815954dc37bdb15de8d8285147fd8a32986 100644 (file)
@@ -5415,8 +5415,7 @@ static bool SwitchToLookupTable(SwitchInst *SI, IRBuilder<> &Builder,
   }
 
   bool ReturnedEarly = false;
-  for (size_t I = 0, E = PHIs.size(); I != E; ++I) {
-    PHINode *PHI = PHIs[I];
+  for (PHINode *PHI : PHIs) {
     const ResultListTy &ResultList = ResultLists[PHI];
 
     // If using a bitmask, use any value to fill the lookup table holes.