Skip to content

Commit 6b8f910

Browse files
committed
Ensure this patch can be landed independently of the Swift Foundation patch.
1 parent 9303496 commit 6b8f910

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/public/core/BridgeObjectiveC.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -658,7 +658,7 @@ extension Optional: _Unwrappable {
658658
}
659659
}
660660

661-
private let _foundationSwiftValueType = _typeByName("FoundationBase.__SwiftValue") as? _NSSwiftValue.Type
661+
private let _foundationSwiftValueType = (_typeByName("FoundationBase.__SwiftValue") as? _NSSwiftValue.Type) ?? (_typeByName("Foundation.__SwiftValue") as? _NSSwiftValue.Type)
662662

663663
@usableFromInline
664664
internal var _nullPlaceholder: AnyObject {

0 commit comments

Comments
 (0)