summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2015-05-21 16:00:50 +0000
committerSanjay Patel <spatel@rotateright.com>2015-05-21 16:00:50 +0000
commit490aca92bea4439f8f59b994c9404f9baeeb5219 (patch)
tree4716063c20339bef284df2c1c45c25e6c6a5197a /llvm/lib
parentab78164ad8e69ca85fb3ca2f20c14f07fa502e16 (diff)
downloadbcm5719-llvm-490aca92bea4439f8f59b994c9404f9baeeb5219.tar.gz
bcm5719-llvm-490aca92bea4439f8f59b994c9404f9baeeb5219.zip
use range-based for-loop; NFCI
llvm-svn: 237908
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/CodeGen/ScheduleDAGInstrs.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/ScheduleDAGInstrs.cpp b/llvm/lib/CodeGen/ScheduleDAGInstrs.cpp
index 559ff3ec09c..9aed27f20aa 100644
--- 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;
OpenPOWER on IntegriCloud