Skip to content

IRGen: Omit property descriptors from #_hasSymbol checks for static properties #77602

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
Nov 14, 2024

Conversation

tshortli
Copy link
Contributor

Property descriptors for static properties were only recently introduced with SE-438. Since these symbols are not present in Swift libraries that were compiled with earlier versions of the compiler, it is not safe for #_hasSymbol to check for the property descriptor symbols, since they can be absent at either link time or runtime.

Resolves rdar://139749275.

…roperties.

Property descriptors for static properties were only recently introduced with
SE-438. Since these symbols are not present in Swift libraries that were
compiled with earlier versions of the compiler, it is not safe for
`#_hasSymbol` to check for the property descriptor symbols, since they can be
absent at either link time or runtime.

Resolves rdar://139749275.
@tshortli tshortli requested a review from xedin November 14, 2024 00:02
@tshortli tshortli requested a review from rjmccall as a code owner November 14, 2024 00:02
@tshortli
Copy link
Contributor Author

@swift-ci please smoke test

@tshortli tshortli enabled auto-merge November 14, 2024 00:52
@tshortli tshortli merged commit acb0c5a into swiftlang:main Nov 14, 2024
3 checks passed
@tshortli tshortli deleted the has-symbol-static-property branch November 14, 2024 16:37
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