Skip to content

Commit a60f05e

Browse files
committed
[NFC] OwnedLifetimeCan: Used for-in loop.
1 parent 083f3ef commit a60f05e

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
@@ -1174,9 +1174,8 @@ void CanonicalizeOSSALifetime::rewriteCopies() {
11741174
}
11751175

11761176
// Remove the leftover copy_value and destroy_value instructions.
1177-
for (auto iter = instsToDelete.begin(), end = instsToDelete.end();
1178-
iter != end; ++iter) {
1179-
deleter.forceDelete(*iter);
1177+
for (auto *inst : instsToDelete) {
1178+
deleter.forceDelete(inst);
11801179
}
11811180
}
11821181

0 commit comments

Comments
 (0)