Skip to content

Commit 45689e2

Browse files
committed
CodeGen: use range based for loop, NFC
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@279154 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent 949ea4a commit 45689e2

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/CodeGen/CGCall.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2532,9 +2532,8 @@ static llvm::Value *tryEmitFusedAutoreleaseOfResult(CodeGenFunction &CGF,
25322532
}
25332533

25342534
// Delete all the unnecessary instructions, from latest to earliest.
2535-
for (SmallVectorImpl<llvm::Instruction*>::iterator
2536-
i = insnsToKill.begin(), e = insnsToKill.end(); i != e; ++i)
2537-
(*i)->eraseFromParent();
2535+
for (auto *I : insnsToKill)
2536+
I->eraseFromParent();
25382537

25392538
// Do the fused retain/autorelease if we were asked to.
25402539
if (doRetainAutorelease)

0 commit comments

Comments
 (0)