projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2267264
)
use range-based for-loop; NFCI
author
Sanjay Patel
<spatel@rotateright.com>
Thu, 21 May 2015 16:00:50 +0000
(16:00 +0000)
committer
Sanjay Patel
<spatel@rotateright.com>
Thu, 21 May 2015 16:00:50 +0000
(16:00 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@237908
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 559ff3ec09c40160e1ebe5b8ec5eae7c569ca317..9aed27f20aa8d3e293e8f69b019e536e5b82838a 100644
(file)
--- a/
lib/CodeGen/ScheduleDAGInstrs.cpp
+++ b/
lib/CodeGen/ScheduleDAGInstrs.cpp
@@
-167,10
+167,7
@@
static void getUnderlyingObjectsForInstr(const MachineInstr *MI,
SmallVector<Value *, 4> Objs;
getUnderlyingObjects(V, Objs, DL);
- for (SmallVectorImpl<Value *>::iterator I = Objs.begin(), IE = Objs.end();
- I != IE; ++I) {
- V = *I;
-
+ for (Value *V : Objs) {
if (!isIdentifiedObject(V)) {
Objects.clear();
return;