1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 02:52:53 +02:00

use range-based for-loop

llvm-svn: 237914
This commit is contained in:
Sanjay Patel 2015-05-21 17:04:17 +00:00
parent e11015eff3
commit ff3ba72b91

View File

@ -499,10 +499,9 @@ static inline bool isUnsafeMemoryObject(MachineInstr *MI,
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;
}