Skip to content

Expose macros for availability domain definitions #11250

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

Open
wants to merge 1 commit into
base: stable/20240723
Choose a base branch
from

Conversation

tshortli
Copy link

Also, replace feature-availability.h with availability_domain.h to better align the header/module name with the name of the compiler feature.

Resolves rdar://157689733.

Also, replace feature-availability.h with availability_domain.h to better align
the header/module name with the name of the compiler feature.

Resolves rdar://157689733.
@tshortli tshortli requested a review from ahatanaka August 23, 2025 01:13
@tshortli tshortli requested a review from a team as a code owner August 23, 2025 01:13
@tshortli
Copy link
Author

@swift-ci please test

@@ -927,6 +927,8 @@ ASTContext::getFeatureAvailInfo(Decl *D) const {
auto *Attr = VD->getAttr<AvailabilityDomainAttr>();
if (!Attr)
return {};
if (!VD->getInit())
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a drive-by fix for a compiler crash I encountered when testing an earlier version of this PR.

@tshortli
Copy link
Author

@swift-ci please test Windows

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