diff options
author | Sanjay Patel <spatel@rotateright.com> | 2016-01-31 16:34:48 +0000 |
---|---|---|
committer | Sanjay Patel <spatel@rotateright.com> | 2016-01-31 16:34:48 +0000 |
commit | 8af7fbc34c02f974458b046b664c8b8a180dd45d (patch) | |
tree | d9311589d714dee4554a8bdbbf0c36d5d9c00e27 /llvm/lib/Transforms | |
parent | 690955fcbcdff7e3b14fba09f46e622d8014253b (diff) | |
download | bcm5719-llvm-8af7fbc34c02f974458b046b664c8b8a180dd45d.tar.gz bcm5719-llvm-8af7fbc34c02f974458b046b664c8b8a180dd45d.zip |
use range-based for loop; NFC
llvm-svn: 259325
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r-- | llvm/lib/Transforms/InstCombine/InstCombineInternal.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstCombineInternal.h b/llvm/lib/Transforms/InstCombine/InstCombineInternal.h index e4e506509d3..f23cc8afe10 100644 --- a/llvm/lib/Transforms/InstCombine/InstCombineInternal.h +++ b/llvm/lib/Transforms/InstCombine/InstCombineInternal.h @@ -458,9 +458,9 @@ public: // Make sure that we reprocess all operands now that we reduced their // use counts. if (I.getNumOperands() < 8) { - for (User::op_iterator i = I.op_begin(), e = I.op_end(); i != e; ++i) - if (Instruction *Op = dyn_cast<Instruction>(*i)) - Worklist.Add(Op); + for (Use &Operand : I.operands()) + if (auto *Inst = dyn_cast<Instruction>(Operand)) + Worklist.Add(Inst); } Worklist.Remove(&I); I.eraseFromParent(); |