Tolerate missing Sendable conformances on superclasses.

Fixes the crash in rdar://86653457
This commit is contained in:
Doug Gregor
2022-01-11 11:11:21 -08:00
parent 7a37ad3105
commit 5023a934fc
3 changed files with 9 additions and 3 deletions

View File

@@ -1287,7 +1287,8 @@ LookupConformanceInModuleRequest::evaluate(
auto superclassTy = type->getSuperclassForDecl(conformingClass);
// Compute the conformance for the inherited type.
auto inheritedConformance = mod->lookupConformance(superclassTy, protocol);
auto inheritedConformance = mod->lookupConformance(
superclassTy, protocol, /*allowMissing=*/true);
assert(inheritedConformance &&
"We already found the inherited conformance");