AST: Return SemanticAvailableAttr from Decl::getUnavailableAttr().

This commit is contained in:
Allan Shortlidge
2024-12-19 17:00:06 -08:00
parent 055a9ecd07
commit 00aae6ead5
10 changed files with 77 additions and 89 deletions

View File

@@ -111,7 +111,7 @@ SymbolGraph *SymbolGraphASTWalker::getModuleSymbolGraph(const Decl *D) {
}
static bool isUnavailableOrObsoletedOnPlatform(const Decl *D) {
if (const auto *Avail = D->getUnavailableAttr()) {
if (const auto Avail = D->getUnavailableAttr()) {
if (Avail->getPlatform() != PlatformKind::none)
return true;
}