Skip to content

Commit bca125c

Browse files
authored
rdar://137709108 (Mitigate the code size increase from eager-lazy array bridging by marking some methods release none) (#76966)
1 parent 11b613d commit bca125c

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

stdlib/public/core/CocoaArray.swift

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,16 @@ internal struct _CocoaArrayWrapper: RandomAccessCollection {
5151

5252
@usableFromInline
5353
internal var endIndex: Int {
54-
return core.count
54+
@_effects(releasenone) get {
55+
core.count
56+
}
5557
}
5658

5759
@usableFromInline
5860
internal subscript(i: Int) -> AnyObject {
59-
return core.objectAt(i)
61+
@_effects(releasenone) get {
62+
core.objectAt(i)
63+
}
6064
}
6165

6266
@usableFromInline

0 commit comments

Comments
 (0)