We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f559c7 commit 0930709Copy full SHA for 0930709
stdlib/public/core/Unmanaged.swift
@@ -178,8 +178,7 @@ public struct Unmanaged<Instance : AnyObject> {
178
public func _withUnsafeGuaranteedRef<Result>(
179
_ closure: @noescape (Instance) throws -> Result
180
) rethrows -> Result {
181
- let instance = _value
182
- let (guaranteedInstance, token) = Builtin.unsafeGuaranteed(instance)
+ let (guaranteedInstance, token) = Builtin.unsafeGuaranteed(_value)
183
let result = try closure(guaranteedInstance)
184
Builtin.unsafeGuaranteedEnd(token)
185
return result
0 commit comments