mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
The patch resolves #67402. When the original function has a tuple result type, we should append thunkedLinearMap as the last element of the tuple to match the function declaration. Before this patch, the compiler used to wrap the original result tuple and thunkedLinearMap into another tuple, and caused the verifier error. Before the patch: return %{{.*}} : $((Float, Double), @callee_guaranteed (Float) -> X.TangentVector) After the patch: return %{{.*}} : $(Float, Double, @callee_guaranteed (Float) -> X.TangentVector)
1.1 KiB
1.1 KiB