mirror of
https://github.com/llvm/llvm-project.git
synced 2025-05-01 10:16:09 +00:00
use range-based for-loop
llvm-svn: 237914
This commit is contained in:
parent
e2fdf8d60e
commit
f8c028c0b0
@ -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