mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
In IRGen, @autoreleased return values are always converted to +1 by calling objc_retainAutoreleasedReturnValue(), so a partial application thunk cannot have a result with @autoreleased convention. Just turn it into @owned instead, since that's what it is, using similar logic as the @unowned_inner_pointer => @unowned case. Fixes <rdar://problem/24805609>.
1.2 KiB
1.2 KiB