projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ab78164
)
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)
llvm-svn: 237908
llvm/lib/CodeGen/ScheduleDAGInstrs.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/CodeGen/ScheduleDAGInstrs.cpp
b/llvm/lib/CodeGen/ScheduleDAGInstrs.cpp
index
559ff3e
..
9aed27f
100644
(file)
--- a/
llvm/lib/CodeGen/ScheduleDAGInstrs.cpp
+++ b/
llvm/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;