Skip to content

[embedded][Concurrency] Fix missing swift_deletedAsyncMethodError #79706

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

Conversation

kubamracek
Copy link
Contributor

The attached testcase demonstrates the problem: If the optimizer eliminates an async method, the vtable pointer is replaced with a swift_deletedAsyncMethodError, and in Embedded Swift we ended up failing to link in such a situation because swift_deletedAsyncMethodError wasn't getting imported at the SIL level (there's no visible link to it at the SIL level). To fix that let's declare it in RuntimeFunctions.def, plus we need to adjust the GOT creating code to be able to handle the situation when the link entity is in the current module already.

rdar://145584159

@kubamracek
Copy link
Contributor Author

@swift-ci please test

@kubamracek kubamracek force-pushed the embedded-concurrency-deleted-method branch from 39bafce to 71a5e39 Compare March 1, 2025 14:48
@kubamracek
Copy link
Contributor Author

@swift-ci please test

1 similar comment
@kubamracek
Copy link
Contributor Author

@swift-ci please test

Copy link
Contributor

@eeckstein eeckstein left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@kubamracek kubamracek merged commit 43919e8 into swiftlang:main Mar 10, 2025
5 checks passed
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