Skip to content

Commit 41a9f5e

Browse files
committed
Check that DomainName is empty in isOtherPlatformSpec
1 parent 3b005bf commit 41a9f5e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

clang/include/clang/AST/Availability.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,9 @@ class AvailabilitySpec {
6060
SourceLocation getEndLoc() const { return EndLoc; }
6161

6262
/// Returns true when this represents the '*' case.
63-
bool isOtherPlatformSpec() const { return Version.empty(); }
63+
bool isOtherPlatformSpec() const {
64+
return Version.empty() && DomainName.empty();
65+
}
6466

6567
bool isDomainName() const { return !DomainName.empty(); }
6668
StringRef getDomainName() const { return DomainName; }

0 commit comments

Comments
 (0)