swiftlang / swift

The Swift Programming Language
https://swift.org
Apache License 2.0
67.37k stars 10.34k forks source link

Fix partial apply forwarder emission for coroutines that are methods of structs with type parameters #76743

Open asl opened 1 day ago

asl commented 1 day ago

Simplify the code while here.

This refactors some implementation bits of https://github.com/swiftlang/swift/pull/71653 (and effectively reverts some parts of it). In particular, it implements the coroutine call in terms of CallEmission rather than relying on implementation details of CallEmission.

asl commented 1 day ago

@swift-ci please test

asl commented 1 day ago

@asavonic Will you please review?

asl commented 1 day ago

preset=buildbot,tools=RA,stdlib=RD,test=non_executable @swift-ci Please test with preset macOS

asavonic commented 22 hours ago

Thank you! Looks much better now.