Use range for

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@300334 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Sanjoy Das 2017-04-14 15:50:19 +00:00
parent 7fd520400d
commit edfd87d481

View File

@ -120,9 +120,7 @@ const SCEV *PostIncTransform::TransformImpl(const SCEV *S) {
SmallVector<const SCEV *, 8> Operands;
bool Changed = false;
// Transform each operand.
for (SCEVNAryExpr::op_iterator I = X->op_begin(), E = X->op_end();
I != E; ++I) {
const SCEV *O = *I;
for (auto *O : X->operands()) {
const SCEV *N = TransformSubExpr(O);
Changed |= N != O;
Operands.push_back(N);