mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
AST/Sema: Remove DeclAttr::isUnavailable().
Update callers to use `Decl::isUnavailable()` instead.
This commit is contained in:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user