mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Tolerate missing Sendable conformances on superclasses.
Fixes the crash in rdar://86653457
This commit is contained in:
@@ -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");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user