Use range for

llvm-svn: 300334
This commit is contained in:
Sanjoy Das 2017-04-14 15:50:19 +00:00
parent c5a87a1949
commit 478cd98b22
1 changed files with 1 additions and 3 deletions

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);