File tree Expand file tree Collapse file tree
Sources/OpenGraph/Runtime Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ var sharedCSettings: [CSetting] = [
3434
3535var sharedSwiftSettings : [ SwiftSetting ] = [
3636 . enableUpcomingFeature( " InternalImportsByDefault " ) ,
37+ . enableExperimentalFeature( " Extern " ) ,
3738 . swiftLanguageMode( . v5) ,
3839]
3940
Original file line number Diff line number Diff line change @@ -75,15 +75,15 @@ extension UnsafeTuple {
7575
7676// MARK: - UnsafeMutableTuple
7777
78- @_silgen_name ( " swift_slowAlloc " )
79- private func slowAlloc( _ size: Int , _ alignMask: Int ) -> UnsafeMutableRawPointer
80-
81- @_silgen_name ( " swift_slowDealloc " )
82- private func slowDealloc( _ ptr: UnsafeMutableRawPointer , _ size: Int , _ alignMask: Int )
83-
8478extension UnsafeMutableTuple {
8579 public init ( with tupleType: TupleType ) {
86- self . init ( type: tupleType, value: slowAlloc ( tupleType. size, - 1 ) )
80+ self . init (
81+ type: tupleType,
82+ value: UnsafeMutableRawPointer . allocate (
83+ byteCount: tupleType. size,
84+ alignment: - 1
85+ )
86+ )
8787 }
8888
8989 public func initialize< T> ( at index: Int , to element: T ) {
@@ -104,7 +104,7 @@ extension UnsafeMutableTuple {
104104 if initialized {
105105 deinitialize ( )
106106 }
107- slowDealloc ( value, - 1 , - 1 )
107+ value. deallocate ( )
108108 }
109109
110110 public var count : Int { type. count }
You can’t perform that action at this time.
0 commit comments