@@ -4765,7 +4765,7 @@ namespace {
4765
4765
// If we're importing into the primary @interface for something, as
4766
4766
// opposed to an extension, make sure we don't try to load any
4767
4767
// categories...by just looking into the super type.
4768
- lookupContext = classDecl->getSuperclassDecl ();
4768
+ lookupContext = classDecl->getSuperclassDecl ();
4769
4769
}
4770
4770
4771
4771
if (lookupContext) {
@@ -7651,8 +7651,8 @@ void ClangImporter::Implementation::startedImportingEntity() {
7651
7651
static void finishTypeWitnesses (
7652
7652
NormalProtocolConformance *conformance) {
7653
7653
auto *dc = conformance->getDeclContext ();
7654
+ auto nominal = dc->getAsNominalTypeOrNominalTypeExtensionContext ();
7654
7655
auto *module = dc->getParentModule ();
7655
- auto &ctx = module ->getASTContext ();
7656
7656
7657
7657
auto *proto = conformance->getProtocol ();
7658
7658
auto selfType = conformance->getType ();
@@ -7669,8 +7669,8 @@ static void finishTypeWitnesses(
7669
7669
NL_OnlyTypes |
7670
7670
NL_ProtocolMembers);
7671
7671
7672
- dc->lookupQualified (selfType , assocType->getFullName (), options,
7673
- ctx. getLazyResolver (), lookupResults);
7672
+ dc->lookupQualified (nominal , assocType->getFullName (), options,
7673
+ lookupResults);
7674
7674
for (auto member : lookupResults) {
7675
7675
auto typeDecl = cast<TypeDecl>(member);
7676
7676
if (isa<AssociatedTypeDecl>(typeDecl)) continue ;
0 commit comments