[NFC] Use DeclAttributes::isDeprecated in a few more places.

This commit is contained in:
Holly Borla
2024-06-10 07:16:44 -07:00
parent 005b45c1cc
commit 5da7ac6cbd
5 changed files with 5 additions and 5 deletions

View File

@@ -4230,7 +4230,7 @@ findImportedCaseWithMatchingSuffix(Type instanceTy, DeclNameRef name) {
// Is one more available than the other?
WORSE(->getAttrs().isUnavailable(ctx));
WORSE(->getAttrs().getDeprecated(ctx));
WORSE(->getAttrs().isDeprecated(ctx));
// Does one have a shorter name (so the non-matching prefix is shorter)?
WORSE(->getName().getBaseName().userFacingName().size());