mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-14 17:28:53 +00:00
use range-based for-loop
llvm-svn: 237914
This commit is contained in:
parent
e11015eff3
commit
ff3ba72b91
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user