Skip to content

[6.0 🍒][Compile Time Constant Extraction] Ensure macro-expanded declarations are visited in WMO #74712

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

Conversation

artemcm
Copy link
Contributor

@artemcm artemcm commented Jun 25, 2024

Cherry-pick of #74708

Explanation: When support for macro-expanded declarations was added to ConstExtract, it only ever applied to single-file compilation on a per-primary basis. Which means that the same code, when compiled in WMO, did not handle macro-generated extension declarations. This change brings WMO code-path in line with the per-primary extraction code path.

Risk: Low. WMO compilation will now match what happens per-primary in single-file compiles.

Testing: Automated test added to the compiler test suite.

Resolves rdar://130036855

… are visited in WMO

Resolves rdar://130036855
@artemcm artemcm added 🍒 release cherry pick Flag: Release branch cherry picks swift 6.0 labels Jun 25, 2024
@artemcm artemcm requested a review from nkcsgexi June 25, 2024 22:00
@artemcm artemcm requested a review from a team as a code owner June 25, 2024 22:00
@artemcm
Copy link
Contributor Author

artemcm commented Jun 25, 2024

@swift-ci test

@artemcm artemcm merged commit 8afcfd1 into swiftlang:release/6.0 Jun 26, 2024
5 checks passed
@artemcm artemcm deleted the 60ConstExtractWMOMacroExpansionExtraction branch June 26, 2024 15:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🍒 release cherry pick Flag: Release branch cherry picks swift 6.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants