Skip to content

Commit 026aad4

Browse files
committed
[NFC] CanOSSALifetime: Used for-each syntax.
1 parent 3d1f92d commit 026aad4

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/SILOptimizer/Utils/CanonicalizeOSSALifetime.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1136,9 +1136,8 @@ void CanonicalizeOSSALifetime::rewriteCopies() {
11361136
}
11371137

11381138
// Remove the leftover copy_value and destroy_value instructions.
1139-
for (auto iter = instsToDelete.begin(), end = instsToDelete.end();
1140-
iter != end; ++iter) {
1141-
deleter.forceDelete(*iter);
1139+
for (auto *inst : instsToDelete) {
1140+
deleter.forceDelete(inst);
11421141
}
11431142
}
11441143

0 commit comments

Comments
 (0)