4646@_addressableForDependencies
4747public struct InlineArray < let count: Int , Element: ~ Copyable> : ~ Copyable {
4848 @usableFromInline
49- internal let _storage : Builtin . FixedArray < count , Element >
49+ internal var _storage : Builtin . FixedArray < count , Element >
5050}
5151
5252@available ( SwiftStdlib 6 . 2 , * )
@@ -69,7 +69,7 @@ extension InlineArray where Element: ~Copyable {
6969 @_alwaysEmitIntoClient
7070 @_transparent
7171 internal var _address : UnsafePointer < Element > {
72- unsafe UnsafePointer< Element > ( Builtin . unprotectedAddressOfBorrow ( self ) )
72+ unsafe UnsafePointer< Element > ( Builtin . unprotectedAddressOfBorrow ( _storage ) )
7373 }
7474
7575 /// Returns a buffer pointer over the entire array.
@@ -86,7 +86,7 @@ extension InlineArray where Element: ~Copyable {
8686 @_transparent
8787 internal var _mutableAddress : UnsafeMutablePointer < Element > {
8888 mutating get {
89- unsafe UnsafeMutablePointer< Element > ( Builtin . unprotectedAddressOf ( & self ) )
89+ unsafe UnsafeMutablePointer< Element > ( Builtin . unprotectedAddressOf ( & _storage ) )
9090 }
9191 }
9292
@@ -147,7 +147,7 @@ extension InlineArray where Element: ~Copyable {
147147 @_alwaysEmitIntoClient
148148 public init < E: Error > ( _ body: ( Index ) throws ( E ) -> Element ) throws ( E) {
149149#if $BuiltinEmplaceTypedThrows
150- self = try Builtin . emplace { ( rawPtr) throws ( E) -> ( ) in
150+ _storage = try Builtin . emplace { ( rawPtr) throws ( E) -> ( ) in
151151 let buffer = unsafe Self. _initializationBuffer ( start: rawPtr)
152152
153153 for i in 0 ..< count {
@@ -204,7 +204,7 @@ extension InlineArray where Element: ~Copyable {
204204 // and take the underlying value within the closure.
205205 var o : Element ? = first
206206
207- self = try Builtin . emplace { ( rawPtr) throws ( E) -> ( ) in
207+ _storage = try Builtin . emplace { ( rawPtr) throws ( E) -> ( ) in
208208 let buffer = unsafe Self. _initializationBuffer ( start: rawPtr)
209209
210210 guard Self . count > 0 else {
@@ -248,7 +248,7 @@ extension InlineArray where Element: Copyable {
248248 @_alwaysEmitIntoClient
249249 public init ( repeating value: Element ) {
250250#if $ValueGenericsNameLookup
251- self = Builtin . emplace {
251+ _storage = Builtin . emplace {
252252 let buffer = unsafe Self. _initializationBuffer ( start: $0)
253253
254254 unsafe buffer. initialize ( repeating: value)
0 commit comments