File tree Expand file tree Collapse file tree 2 files changed +3
-11
lines changed Expand file tree Collapse file tree 2 files changed +3
-11
lines changed Original file line number Diff line number Diff line change @@ -179,16 +179,8 @@ internal struct _BridgeStorage<NativeClass: AnyObject> {
179
179
@inline ( __always)
180
180
internal init ( native: Native ) {
181
181
_internalInvariant ( _usesNativeSwiftReferenceCounting ( NativeClass . self) )
182
- rawValue = Builtin . reinterpretCast ( native)
183
- }
184
-
185
- #if _pointerBitWidth(_64)
186
- @inlinable
187
- @inline ( __always)
188
- internal init ( taggedPayload: UInt ) {
189
- rawValue = Builtin . reinterpretCast ( taggedPayload)
182
+ rawValue = native
190
183
}
191
- #endif
192
184
193
185
@inlinable
194
186
@inline ( __always)
Original file line number Diff line number Diff line change @@ -36,9 +36,9 @@ extension Set {
36
36
@inlinable
37
37
@inline ( __always)
38
38
init ( dummy: ( ) ) {
39
- #if _pointerBitWidth(_64)
39
+ #if _pointerBitWidth(_64) && !$Embedded
40
40
self . object = _BridgeStorage ( taggedPayload: 0 )
41
- #elseif _pointerBitWidth(_32)
41
+ #elseif _pointerBitWidth(_32) || $Embedded
42
42
self . init ( native: _NativeSet ( ) )
43
43
#else
44
44
#error("Unknown platform")
You can’t perform that action at this time.
0 commit comments