Update SourceKit for getInterfaceType() changes

This commit is contained in:
Robert Widmann
2019-09-23 16:50:19 -07:00
parent 792e1db448
commit 1233cdf596
8 changed files with 13 additions and 31 deletions

View File

@@ -533,10 +533,9 @@ static void reportRelated(ASTContext &Ctx, const Decl *D,
} else if (auto *TAD = dyn_cast<TypeAliasDecl>(D)) {
if (TAD->hasInterfaceType()) {
if (auto Ty = TAD->getDeclaredInterfaceType()) {
// If underlying type exists, report the inheritance and conformance of the
// underlying type.
auto Ty = TAD->getDeclaredInterfaceType();
if (auto NM = Ty->getAnyNominal()) {
passInherits(NM->getInherited(), Consumer);
passConforms(NM->getSatisfiedProtocolRequirements(/*Sorted=*/true),