Skip to content

[5.5] [TBDGen] Use default kind for AFPAST SILDeclRef. #38388

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

Cherry-pick of #38372 to release/5.5.

When adding an AsyncFunctionPointer to the TBD, a LinkEntity of kind AsyncFunctionPointerAST is constructed containing the decl. That decl is then wrapped in a SILDeclRef which is then mangled.

Previously, the kind of the SILDeclRef was erroneously forced to be Func. The result was a failure to mangle the TBD symbol for async constructors correctly.

Here, that argument is omitted so that the kind can be determined appropriately by SILDeclRef's constructor.

rdar://80485869

When adding an AsyncFunctionPointer to the TBD, a LinkEntity of kind
AsyncFunctionPointerAST is constructed containing the decl.  That decl
is then wrapped in a SILDeclRef which is then mangled.

Previously, the kind of the SILDeclRef was erroneously forced to be
Func.  The result was a failure to mangle the TBD symbol for async
constructors correctly.

Here, that argument is omitted so that the kind can be determined
appropriately by SILDeclRef's constructor.

rdar://80485869
@nate-chandler nate-chandler requested a review from a team as a code owner July 14, 2021 14:51
@nate-chandler
Copy link
Contributor Author

@swift-ci please test

Copy link
Contributor

@aschwaighofer aschwaighofer left a comment

Choose a reason for hiding this comment

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

lgtm

@nate-chandler nate-chandler merged commit d1881c4 into swiftlang:release/5.5 Jul 15, 2021
@nate-chandler nate-chandler deleted the cherrypick/rdar80485869/release/5.5 branch July 15, 2021 02:05
@AnthonyLatsis AnthonyLatsis added 🍒 release cherry pick Flag: Release branch cherry picks swift 5.5 labels Jan 8, 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 swift 5.5
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants