Skip to content

Conversation

@nate-chandler
Copy link
Contributor

Now that the convention for partial apply forwarders of async functions is that the thick context is embedded within the async context, there is never a need for a placeholder thick context. Here, the placeholder thick context is only added when the function for which a partial apply forwarder is being emitted is not async.

Previously, the thick context was passed as a fourth parameter to
partial apply forwarders.  Here, the thick context is instead moved into
the async context at the local context position.  To support this, the
local context is made always available.
Now that the convention for partial apply forwarders of async functions
is that the thick context is embedded within the async context, there is
never a need for a placeholder thick context.  Here, the placeholder
thick context is only added when the function for which a partial apply
forwarder is being emitted is not async.
@nate-chandler nate-chandler changed the title [Async CC] Don't add thick placeholder to args. [Async CC] Don't add thick placeholder to args from partial apply forwarder. Nov 16, 2020
@nate-chandler
Copy link
Contributor Author

@swift-ci please smoke test

@nate-chandler nate-chandler merged commit a9c080e into swiftlang:main Nov 16, 2020
@nate-chandler nate-chandler deleted the concurrency/irgen/no-thick-placeholder-for-async-pafs branch November 16, 2020 23:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant