mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user