Skip to content

Commit 9ee6645

Browse files
authored
Merge pull request #11077 from slavapestov/a-dave-abrahams-special-4.0
AST: Check return value of ProtocolConformance::getTypeWitness() [4.0]
2 parents bec3f3a + a5d2a4e commit 9ee6645

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/AST/GenericSignatureBuilder.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1720,6 +1720,7 @@ static void concretizeNestedTypeFromConcreteParent(
17201720
witnessType =
17211721
conformance.getConcrete()
17221722
->getTypeWitness(assocType, builder.getLazyResolver());
1723+
if (!witnessType) return;
17231724
} else {
17241725
witnessType = DependentMemberType::get(concreteParent, assocType);
17251726
}

0 commit comments

Comments
 (0)