mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
AST: Introduce Decl::isUnavailable().
Replace calls to `AvailableAttr::isUnavailable()` with `Decl::isUnavailable()`.
This commit is contained in:
@@ -335,7 +335,7 @@ bool ProtocolConformanceRef::hasUnavailableConformance() const {
|
||||
auto concrete = getConcrete();
|
||||
auto *dc = concrete->getRootConformance()->getDeclContext();
|
||||
auto ext = dyn_cast<ExtensionDecl>(dc);
|
||||
if (ext && AvailableAttr::isUnavailable(ext))
|
||||
if (ext && ext->isUnavailable())
|
||||
return true;
|
||||
|
||||
// Check the conformances in the substitution map.
|
||||
|
||||
Reference in New Issue
Block a user