File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -74,11 +74,20 @@ public func _fixLifetime<T>(_ x: T) {
74
74
/// execution.
75
75
/// - Returns: The return value, if any, of the `body` closure.
76
76
@inlinable
77
- public func withUnsafeMutablePointer< T, Result> (
77
+ @_alwaysEmitIntoClient
78
+ public func withUnsafeMutablePointer< T, E: Error , Result> (
79
+ to value: inout T ,
80
+ _ body: ( UnsafeMutablePointer < T > ) throws ( E ) -> Result
81
+ ) throws ( E) -> Result {
82
+ try body ( UnsafeMutablePointer < T > ( Builtin . addressof ( & value) ) )
83
+ }
84
+
85
+ @_silgen_name ( " $ss24withUnsafeMutablePointer2to_q_xz_q_SpyxGKXEtKr0_lF " )
86
+ @usableFromInline
87
+ func __abi_se0413_withUnsafeMutablePointer< T, Result> (
78
88
to value: inout T ,
79
89
_ body: ( UnsafeMutablePointer < T > ) throws -> Result
80
- ) rethrows -> Result
81
- {
90
+ ) throws -> Result {
82
91
return try body ( UnsafeMutablePointer < T > ( Builtin . addressof ( & value) ) )
83
92
}
84
93
You can’t perform that action at this time.
0 commit comments