Skip to content

Commit be1aedb

Browse files
committed
stdlib: add @_versioned to some internal types referenced from inlineable functions
1 parent 4a34aa7 commit be1aedb

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

stdlib/public/core/ArrayBody.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

1818
import SwiftShims
1919

20+
@_versioned
2021
internal struct _ArrayBody {
2122
var _storage: _SwiftArrayBodyStorage
2223

stdlib/public/core/ContiguousArrayBuffer.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ class _ContiguousArrayStorage1 : _ContiguousArrayStorageBase {
100100
}
101101

102102
// The class that implements the storage for a ContiguousArray<Element>
103+
@_versioned
103104
final class _ContiguousArrayStorage<Element> : _ContiguousArrayStorage1 {
104105

105106
deinit {

stdlib/public/core/StringBuffer.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
//
1111
//===----------------------------------------------------------------------===//
1212

13+
@_versioned
1314
struct _StringBufferIVars {
1415
internal init(_elementWidth: Int) {
1516
_sanityCheck(_elementWidth == 1 || _elementWidth == 2)

0 commit comments

Comments
 (0)