Skip to content

SIL: Always give @_silgen_name forward declarations public linkage #78183

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

Conversation

tshortli
Copy link
Contributor

@tshortli tshortli commented Dec 14, 2024

When @_silgen_name is applied to a function with no body, it is a forward declaration. It therefore must be treated as an external (public) declaration regardless of the access level it was given in source.

Resolves rdar://141436934.

When `@_silgen_name` is applied to a function with no body, it is a forward
declaration. It therefore must be treated as an external (public) declaration
regardless of the access level it was given in source.

Resolves rdar://141436934.
@tshortli tshortli force-pushed the silgen-name-linkage branch from 9300fa4 to 87d625e Compare December 14, 2024 00:48
@tshortli
Copy link
Contributor Author

@swift-ci please test

@tshortli tshortli merged commit 8f5e37c into swiftlang:main Dec 14, 2024
5 checks passed
@tshortli tshortli deleted the silgen-name-linkage branch December 14, 2024 18:12
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.

1 participant