Skip to content

Commit 4b304f7

Browse files
committed
stdlib: Missed a couple of @_versioned for resilience
Discovered this with some uncommitted patches that add new asserts while fixing test failures when stdlib is built with -enable-resilience.
1 parent 260611e commit 4b304f7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

stdlib/public/core/Character.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ public struct Character :
2525
//
2626
// If the grapheme cluster can be represented as `.small`, it
2727
// should be represented as such.
28+
@_versioned
2829
internal enum Representation {
2930
// A _StringBuffer whose first grapheme cluster is self.
3031
// NOTE: may be more than 1 Character long.
@@ -269,6 +270,7 @@ public struct Character :
269270
return String(self).utf16
270271
}
271272

273+
@_versioned
272274
internal var _representation: Representation
273275
}
274276

0 commit comments

Comments
 (0)