Skip to content
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

[5.9] IRGen: Don't directly call async functions that have weak/linkonce_odr linkage #65350

Conversation

aschwaighofer
Copy link
Contributor

@aschwaighofer aschwaighofer commented Apr 21, 2023

The async function pointer context size and the async function implementiation are logically tied. Using a different async context pointer context size and async function implementation (from different translation units) is problematic.

This fixes static linking on linux. #65097

Risk: Low. We use an alternate strategy for async function pointer calls we would also use when the function pointer is not statically known.

rdar://106029807

Original PR: #64638

…nce_odr linkage

The async function pointer context size and the async function implementiation are logically tied. Using a different async context pointer context size and async function implementation (from different translation units) is problematic.

rdar://106029807

Original PR: swiftlang#64638
@aschwaighofer aschwaighofer requested a review from a team as a code owner April 21, 2023 16:29
@aschwaighofer
Copy link
Contributor Author

@swift-ci test

@aschwaighofer aschwaighofer merged commit 62adf1f into swiftlang:release/5.9 May 1, 2023
@AnthonyLatsis AnthonyLatsis added the 🍒 release cherry pick Flag: Release branch cherry picks label May 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🍒 release cherry pick Flag: Release branch cherry picks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants