use range-based for-loop; NFCI
authorSanjay Patel <spatel@rotateright.com>
Thu, 21 May 2015 16:00:50 +0000 (16:00 +0000)
committerSanjay Patel <spatel@rotateright.com>
Thu, 21 May 2015 16:00:50 +0000 (16:00 +0000)
llvm-svn: 237908

llvm/lib/CodeGen/ScheduleDAGInstrs.cpp

index 559ff3e..9aed27f 100644 (file)
@@ -167,10 +167,7 @@ static void getUnderlyingObjectsForInstr(const MachineInstr *MI,
   SmallVector<Value *, 4> Objs;
   getUnderlyingObjects(V, Objs, DL);
 
-  for (SmallVectorImpl<Value *>::iterator I = Objs.begin(), IE = Objs.end();
-         I != IE; ++I) {
-    V = *I;
-
+  for (Value *V : Objs) {
     if (!isIdentifiedObject(V)) {
       Objects.clear();
       return;