Skip to content

AST: DeclExportabilityVisitor fixes #70358

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
Dec 10, 2023

Conversation

tshortli
Copy link
Contributor

@tshortli tshortli commented Dec 10, 2023

DeclExportabilityVisitor wasn't handling macro expansion, pound diagnostics, and top-level code declarations which lead to crashes when emitting SIL with -experimental-skip-non-exportable-decls for some modules.

Resolves rdar://119449439

@tshortli tshortli changed the title AST: DeclExportabilityVisitor fixes. AST: DeclExportabilityVisitor fixes Dec 10, 2023
@tshortli tshortli enabled auto-merge December 10, 2023 06:15
@tshortli tshortli force-pushed the exportability-fixes branch from 663e122 to 1297979 Compare December 10, 2023 17:08
Instances of `MacroExpansionDecl` may be found in the AST when declarations are
expanded from freestanding declaration macros and therefore exportability
computations must be prepared to handle them.

Resolves rdar://119449439
@tshortli tshortli force-pushed the exportability-fixes branch from 1297979 to 3c68c20 Compare December 10, 2023 17:10
@tshortli
Copy link
Contributor Author

@swift-ci please smoke test

@tshortli tshortli merged commit f24976b into swiftlang:main Dec 10, 2023
@tshortli tshortli deleted the exportability-fixes branch December 10, 2023 20:00
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