Skip to content

SILGen fixes for -experimental-skip-non-exportable-decls #69392

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 3 commits into from
Oct 25, 2023

Conversation

tshortli
Copy link
Contributor

Various fixes for SILGen behavior when -experimental-skip-non-exportable-decls is specified. See commits for details.

Resolves rdar://117020997&117438934&117440503

Functions that are nested within other functions are not exportable to clients
since they cannot be called directly by clients. However, they need still to be
emitted during SILGen when -experimental-skip-non-exportable-decls is specified
so walk the decl context hierarchy when determining whether to skip emitting a
function.

Resolves rdar://117440503
@tshortli tshortli force-pushed the skip-non-exportable-decls-fixes branch from a01ed12 to 114a46a Compare October 25, 2023 05:59
@tshortli
Copy link
Contributor Author

@swift-ci please smoke test

@tshortli tshortli merged commit 36824b5 into swiftlang:main Oct 25, 2023
@tshortli tshortli deleted the skip-non-exportable-decls-fixes branch October 25, 2023 16:27
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