AST/Sema: Remove DeclAttr::isUnavailable().

Update callers to use `Decl::isUnavailable()` instead.
This commit is contained in:
Allan Shortlidge
2024-11-23 17:56:46 -08:00
parent 1dc7aa5b7b
commit 2358712870
16 changed files with 48 additions and 67 deletions

View File

@@ -275,7 +275,7 @@ deriveBodyCodingKey_init_stringValue(AbstractFunctionDecl *initDecl, void *) {
for (auto *elt : elements) {
// Skip the cases that would return unavailable elements since those can't
// be instantiated at runtime.
if (elt->getAttrs().isUnavailable(C))
if (elt->isUnavailable())
continue;
auto *litExpr = new (C) StringLiteralExpr(elt->getNameStr(), SourceRange(),