File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -74,7 +74,11 @@ internal struct _BridgeStorage<NativeClass: AnyObject> {
74
74
@inlinable
75
75
@inline ( __always)
76
76
internal init ( taggedPayload: UInt ) {
77
+ #if !$Embedded
78
+ rawValue = _bridgeObject ( taggingPayload: taggedPayload)
79
+ #else
77
80
rawValue = Builtin . reinterpretCast ( taggedPayload)
81
+ #endif
78
82
}
79
83
#endif
80
84
@@ -134,7 +138,11 @@ internal struct _BridgeStorage<NativeClass: AnyObject> {
134
138
internal var nativeInstance : Native {
135
139
@inline ( __always) get {
136
140
_internalInvariant ( isNative)
141
+ #if !$Embedded
142
+ return Builtin . castReferenceFromBridgeObject ( rawValue)
143
+ #else
137
144
return rawValue
145
+ #endif
138
146
}
139
147
}
140
148
@@ -145,7 +153,11 @@ internal struct _BridgeStorage<NativeClass: AnyObject> {
145
153
#if !$Embedded
146
154
_internalInvariant ( _nonPointerBits ( rawValue) == 0 )
147
155
#endif
156
+ #if !$Embedded
157
+ return Builtin . reinterpretCast ( rawValue)
158
+ #else
148
159
return rawValue
160
+ #endif
149
161
}
150
162
}
151
163
Original file line number Diff line number Diff line change @@ -473,7 +473,7 @@ extension _DictionaryStorage {
473
473
truncatingIfNeeded: ObjectIdentifier ( storage) . hashValue)
474
474
}
475
475
476
- storage. _seed = seed ?? _HashTable. hashSeed ( for: storage, scale: scale)
476
+ storage. _seed = seed ?? _HashTable. hashSeed ( for: Builtin . castToNativeObject ( storage) , scale: scale)
477
477
storage. _rawKeys = UnsafeMutableRawPointer ( keysAddr)
478
478
storage. _rawValues = UnsafeMutableRawPointer ( valuesAddr)
479
479
You can’t perform that action at this time.
0 commit comments