[llvm] r237914 - use range-based for-loop
Sanjay Patel
spatel at rotateright.com
Thu May 21 10:04:17 PDT 2015
Author: spatel
Date: Thu May 21 12:04:17 2015
New Revision: 237914
URL: http://llvm.org/viewvc/llvm-project?rev=237914&view=rev
Log:
use range-based for-loop
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=237914&r1=237913&r2=237914&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/ScheduleDAGInstrs.cpp (original)
+++ llvm/trunk/lib/CodeGen/ScheduleDAGInstrs.cpp Thu May 21 12:04:17 2015
@@ -499,10 +499,9 @@ static inline bool isUnsafeMemoryObject(
SmallVector<Value *, 4> Objs;
getUnderlyingObjects(V, Objs, DL);
- for (SmallVectorImpl<Value *>::iterator I = Objs.begin(),
- IE = Objs.end(); I != IE; ++I) {
+ for (Value *V : Objs) {
// Does this pointer refer to a distinct and identifiable object?
- if (!isIdentifiedObject(*I))
+ if (!isIdentifiedObject(V))
return true;
}
More information about the llvm-commits
mailing list