Skip to content

[concurrency] some small bug fixes #34588

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Nov 5, 2020
Merged

Conversation

eeckstein
Copy link
Contributor

@eeckstein eeckstein commented Nov 5, 2020

  • SILVerifier: don't complain about async function pointers created in non-async functions
    It's possible to materialize an async function pointer, e.g. with partial_apply, in a non-async function - as long as no async function is called.
  • SIL: set the @async attribute for top-level functions correctly
  • SILGen: only emit hop_to_executor instructions in async functions.

…rs created in non-async functions

It's possible to materialize an async function pointer, e.g. with partial_apply, in a non-async function - as long as no async function is called.
@eeckstein
Copy link
Contributor Author

@swift-ci smoke test and merge

@eeckstein eeckstein changed the title [concurrency] fix two small bugs [concurrency] some small bug fixes Nov 5, 2020
@eeckstein
Copy link
Contributor Author

@swift-ci smoke test and merge

@swift-ci swift-ci merged commit e723550 into swiftlang:main Nov 5, 2020
@eeckstein eeckstein deleted the async-bug-fix branch November 5, 2020 16:48
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.

2 participants