Range-ify for loop; NFC

llvm-svn: 331582
This commit is contained in:
George Burgess IV 2018-05-05 04:52:26 +00:00
parent bbe9e2a13c
commit f9d26af4ea
1 changed files with 1 additions and 2 deletions

View 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.