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> {
179179 @inline ( __always)
180180 internal init ( native: Native ) {
181181 _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
190183 }
191- #endif
192184
193185 @inlinable
194186 @inline ( __always)
Original file line number Diff line number Diff line change @@ -36,9 +36,9 @@ extension Set {
3636 @inlinable
3737 @inline ( __always)
3838 init ( dummy: ( ) ) {
39- #if _pointerBitWidth(_64)
39+ #if _pointerBitWidth(_64) && !$Embedded
4040 self . object = _BridgeStorage ( taggedPayload: 0 )
41- #elseif _pointerBitWidth(_32)
41+ #elseif _pointerBitWidth(_32) || $Embedded
4242 self . init ( native: _NativeSet ( ) )
4343#else
4444#error("Unknown platform")
You can’t perform that action at this time.
0 commit comments