diff options
author | George Burgess IV <george.burgess.iv@gmail.com> | 2018-05-05 04:52:26 +0000 |
---|---|---|
committer | George Burgess IV <george.burgess.iv@gmail.com> | 2018-05-05 04:52:26 +0000 |
commit | f9d26af4ea9b0807d35901b6083597c99e32809e (patch) | |
tree | 93a4f18f92ed904bcbda803be1c9ef1e5bd1e0c1 | |
parent | bbe9e2a13ccba3e2adbf3ec1eafd3cd5022e3ca1 (diff) | |
download | bcm5719-llvm-f9d26af4ea9b0807d35901b6083597c99e32809e.tar.gz bcm5719-llvm-f9d26af4ea9b0807d35901b6083597c99e32809e.zip |
Range-ify for loop; NFC
llvm-svn: 331582
-rw-r--r-- | llvm/lib/Transforms/Utils/SimplifyCFG.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp b/llvm/lib/Transforms/Utils/SimplifyCFG.cpp index 2cf2d27725c..424a8815954 100644 --- a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp +++ b/llvm/lib/Transforms/Utils/SimplifyCFG.cpp @@ -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. |