Skip to content

Commit 3ca7555

Browse files
committed
Exclude @available(swift) from PlatformKind::none Availability inference.
1 parent 168ba39 commit 3ca7555

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/AST/Availability.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,8 @@ AvailabilityInference::annotatedAvailableRange(const Decl *D, ASTContext &Ctx) {
128128
for (auto Attr : D->getAttrs()) {
129129
auto *AvailAttr = dyn_cast<AvailableAttr>(Attr);
130130
if (AvailAttr == nullptr || !AvailAttr->Introduced.hasValue() ||
131-
!AvailAttr->isActivePlatform(Ctx)) {
131+
!AvailAttr->isActivePlatform(Ctx) ||
132+
AvailAttr->isLanguageVersionSpecific()) {
132133
continue;
133134
}
134135

0 commit comments

Comments
 (0)