Skip to content

AST: Fix AvailabilityContext platform range for certain targets #80176

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

tshortli
Copy link
Contributor

#79807 caused a regression in which AvailabilityContext stopped tracking the available version range for the active platform domain for certain platforms. Fix this by reverting to checking AvailabilityDomain::isActive() to determine when a given platform AvailabilityDomain represents the target platform. The compiler's existing mapping from target triple to platform domain is incomplete and it's not clear to me whether fixing that could cause other regressions.

Resolves rdar://147413616.

swiftlang#79807 caused a regression in which
`AvailabilityContext` stopped tracking the available version range for the
active platform domain for certain platforms. Fix this by reverting to checking
`AvailabilityDomain::isActive()` to determine when a given platform
`AvailabilityDomain` represents the target platform. The compiler's existing
mapping from target triple to platform domain is incomplete and it's not clear
to me whether fixing that could cause other regressions.

Resolves rdar://147413616.
@tshortli tshortli force-pushed the remove-is-active-for-target-platform branch from cc16ffe to 592b70f Compare March 20, 2025 23:27
@tshortli
Copy link
Contributor Author

@swift-ci please smoke test

@tshortli tshortli enabled auto-merge March 20, 2025 23:32
@tshortli
Copy link
Contributor Author

@swift-ci please smoke test Linux

@tshortli
Copy link
Contributor Author

@swift-ci please smoke test Windows

1 similar comment
@tshortli
Copy link
Contributor Author

@swift-ci please smoke test Windows

@tshortli tshortli merged commit bff9169 into swiftlang:main Mar 21, 2025
3 checks passed
@tshortli tshortli deleted the remove-is-active-for-target-platform branch March 21, 2025 13:06
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