Skip to content

Commit a6ef182

Browse files
committed
Uninline optional bridging
1 parent 59dd6fb commit a6ef182

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

stdlib/public/core/Optional.swift

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -668,13 +668,11 @@ public func ?? <T>(optional: T?, defaultValue: @autoclosure () throws -> T?)
668668
#if _runtime(_ObjC)
669669
extension Optional : _ObjectiveCBridgeable {
670670
// The object that represents `none` for an Optional of this type.
671-
@inlinable // FIXME(sil-serialize-all)
672671
internal static var _nilSentinel : AnyObject {
673672
@_silgen_name("_swift_Foundation_getOptionalNilSentinelObject")
674673
get
675674
}
676675

677-
@inlinable // FIXME(sil-serialize-all)
678676
public func _bridgeToObjectiveC() -> AnyObject {
679677
// Bridge a wrapped value by unwrapping.
680678
if let value = self {
@@ -684,7 +682,6 @@ extension Optional : _ObjectiveCBridgeable {
684682
return type(of: self)._nilSentinel
685683
}
686684

687-
@inlinable // FIXME(sil-serialize-all)
688685
public static func _forceBridgeFromObjectiveC(
689686
_ source: AnyObject,
690687
result: inout Optional<Wrapped>?
@@ -702,7 +699,6 @@ extension Optional : _ObjectiveCBridgeable {
702699
result = .some(.some(unwrappedResult))
703700
}
704701

705-
@inlinable // FIXME(sil-serialize-all)
706702
public static func _conditionallyBridgeFromObjectiveC(
707703
_ source: AnyObject,
708704
result: inout Optional<Wrapped>?
@@ -726,7 +722,6 @@ extension Optional : _ObjectiveCBridgeable {
726722
}
727723
}
728724

729-
@inlinable // FIXME(sil-serialize-all)
730725
@_effects(readonly)
731726
public static func _unconditionallyBridgeFromObjectiveC(_ source: AnyObject?)
732727
-> Optional<Wrapped> {

0 commit comments

Comments
 (0)