Skip to content

6.2: [IRGen] Fix type of deleted coro error func. #80606

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

Conversation

nate-chandler
Copy link
Contributor

Explanation: Fix link entity kind for swift_deletedCalleeAllocatedCoroutineMethodError.

When methods are eliminated from wtables/vtables, they need to be replaced with something. In the case of async functions, that's swift_deletedAsyncMethodError--when an async method is deleted, a pointer to the async function pointer of swift_deletedAsyncMethodError is put into the wtable/vtable. An analogous consideration applies to callee-allocated coroutines: when they're deleted from vtables/wtables, they need to be replaced with a coroutine function pointer to swift_deletedCalleeAllocatedCoroutineMethodError.

Previously, though, an attempt was made to replace them with an async function pointer to that method. No such entity exists.

Here, this is fixed so they are replaced with a coroutine function pointer.
Scope: Affects the experimental CoroutineAccessors feature.
Issue: rdar://148760489
Original PR: #80556
Risk: Low, only affects the coroutine accessors feature.
Testing: CI.
Reviewer: Arnold Schwaighofer ( @aschwaighofer )

It was previously erroneously an async function pointer.  Also fix the
name.
@nate-chandler
Copy link
Contributor Author

@swift-ci please test

@nate-chandler
Copy link
Contributor Author

@swift-ci please test linux platform

@nate-chandler nate-chandler marked this pull request as ready for review April 8, 2025 14:10
@nate-chandler nate-chandler requested a review from a team as a code owner April 8, 2025 14:10
@nate-chandler nate-chandler merged commit 65e0f65 into swiftlang:release/6.2 Apr 8, 2025
5 checks passed
@nate-chandler nate-chandler deleted the cherrypick/release/6.2/rdar148760489 branch April 8, 2025 14:11
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