[llvm] r237908 - use range-based for-loop; NFCI
Sanjay Patel
spatel at rotateright.com
Thu May 21 09:00:50 PDT 2015
Author: spatel
Date: Thu May 21 11:00:50 2015
New Revision: 237908
URL: http://llvm.org/viewvc/llvm-project?rev=237908&view=rev
Log:
use range-based for-loop; NFCI
Modified:
llvm/trunk/lib/CodeGen/ScheduleDAGInstrs.cpp
Modified: llvm/trunk/lib/CodeGen/ScheduleDAGInstrs.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/ScheduleDAGInstrs.cpp?rev=237908&r1=237907&r2=237908&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/ScheduleDAGInstrs.cpp (original)
+++ llvm/trunk/lib/CodeGen/ScheduleDAGInstrs.cpp Thu May 21 11:00:50 2015
@@ -167,10 +167,7 @@ static void getUnderlyingObjectsForInstr
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;
More information about the llvm-commits
mailing list