[llvm] r256700 - Use range-based for loop. NFC

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Sat Jan 2 23:33:42 PST 2016


Author: ctopper
Date: Sun Jan  3 01:33:42 2016
New Revision: 256700

URL: http://llvm.org/viewvc/llvm-project?rev=256700&view=rev
Log:
Use range-based for loop. NFC

Modified:
    llvm/trunk/include/llvm/MC/SubtargetFeature.h

Modified: llvm/trunk/include/llvm/MC/SubtargetFeature.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/MC/SubtargetFeature.h?rev=256700&r1=256699&r2=256700&view=diff
==============================================================================
--- llvm/trunk/include/llvm/MC/SubtargetFeature.h (original)
+++ llvm/trunk/include/llvm/MC/SubtargetFeature.h Sun Jan  3 01:33:42 2016
@@ -39,8 +39,8 @@ public:
   FeatureBitset(const bitset<MAX_SUBTARGET_FEATURES>& B) : bitset(B) {}
 
   FeatureBitset(std::initializer_list<unsigned> Init) : bitset() {
-    for (auto I = Init.begin() , E = Init.end(); I != E; ++I)
-      set(*I);
+    for (auto I : Init)
+      set(I);
   }
 };
 




More information about the llvm-commits mailing list