Skip to content

Commit 7345fd8

Browse files
authored
Merge pull request #36924 from gottesmm/pr-9a40bc50803b002b698f4b755a1f07fdaf6bd02d
[gardening] Remove an unnecessary bounds check on a container.
2 parents f75f5fe + 90c0bf6 commit 7345fd8

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

include/swift/SILOptimizer/Utils/ScopeOptUtils.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ class AssertingScope {
6161
/// on Optional has value.
6262
void invalidateCleanup(unsigned cleanupIndex) {
6363
assert(!didPop && "Should not invalidate once popped?!");
64-
assert(cleanupIndex < cleanups.size());
6564
assert(cleanups[cleanupIndex].hasValue());
6665
cleanups[cleanupIndex] = None;
6766
}

0 commit comments

Comments
 (0)