Sema: Remove TypeChecker::forceExternalDeclMembers()

It doesn't appear to do anything, or at least it was being
called in places that make no sense.
This commit is contained in:
Slava Pestov
2017-12-11 22:50:49 -08:00
parent 21168dabad
commit 10ca955806
3 changed files with 0 additions and 25 deletions

View File

@@ -3180,13 +3180,6 @@ performMemberLookup(ConstraintKind constraintKind, DeclName memberName,
}
}
}
// If the result's type contains delayed members, we need to force them now.
if (auto NT = dyn_cast<NominalType>(decl->getInterfaceType().getPointer())){
if (auto *NTD = dyn_cast<NominalTypeDecl>(NT->getDecl())) {
TC.forceExternalDeclMembers(NTD);
}
}
// Otherwise, we're good, add the candidate to the list.
result.addViable(candidate);