Skip to content

[6.2 🍒][clang] Fix missing target info specifier on Global Variable linkage computation #11007

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

Conversation

artemcm
Copy link

@artemcm artemcm commented Jul 15, 2025

Cherry-pick of #11006

…computation

A previous change (swiftlang#10555) added support for querying 'isWeakImported' to be parameterized on the enclosing target version to match 'CheckAvailability' and 'getAvailability'. We missed passing in this parameter in the Clang module code-gen when querying linkage for a global variable. This change adds the missing parameter and removes the default parameter from the query in order to avoid this kind of bug in the future.

Resolves rdar://154677999
@artemcm
Copy link
Author

artemcm commented Jul 15, 2025

@swift-ci test

@nkcsgexi nkcsgexi requested a review from cyndyishida July 15, 2025 21:11
@artemcm
Copy link
Author

artemcm commented Jul 16, 2025

@swift-ci test Windows platform

@nkcsgexi nkcsgexi requested a review from DougGregor July 16, 2025 19:44
@artemcm artemcm requested a review from akyrtzi July 16, 2025 21:45
@nkcsgexi nkcsgexi requested a review from cachemeifyoucan July 16, 2025 21:57
@cyndyishida cyndyishida merged commit dfc8ed9 into swiftlang:swift/release/6.2 Jul 17, 2025
3 checks passed
@artemcm artemcm deleted the 62_FixGVLinkageForClangTarget branch July 17, 2025 16:18
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