Skip to content

[TBDGen] Use default kind for AFPAST SILDeclRef. #38372

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 1 commit into from
Jul 14, 2021

Conversation

nate-chandler
Copy link
Contributor

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
Copy link
Contributor Author

@swift-ci please test

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - 19eb22371709599251a5d33f3b61a5aef126de0f

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
Copy link
Contributor Author

@swift-ci please test

@nate-chandler
Copy link
Contributor Author

@swift-ci please clean test windows platform

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 5b18179 into swiftlang:main Jul 14, 2021
@nate-chandler nate-chandler deleted the rdar80485869 branch July 5, 2023 23:34
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.

3 participants