OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e0376b0
)
use range-based for-loop
author
Sanjay Patel
<spatel@rotateright.com>
Thu, 21 May 2015 17:04:17 +0000
(17:04 +0000)
committer
Sanjay Patel
<spatel@rotateright.com>
Thu, 21 May 2015 17:04:17 +0000
(17:04 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@237914
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/ScheduleDAGInstrs.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/ScheduleDAGInstrs.cpp
b/lib/CodeGen/ScheduleDAGInstrs.cpp
index
9aed27f
..
c60c518
100644
(file)
--- a/
lib/CodeGen/ScheduleDAGInstrs.cpp
+++ b/
lib/CodeGen/ScheduleDAGInstrs.cpp
@@
-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;
}