We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d75fac commit 8784464Copy full SHA for 8784464
lib/SILGen/SILGenPoly.cpp
@@ -4483,6 +4483,8 @@ void SILGenFunction::emitProtocolWitness(
4483
->getCanonicalType());
4484
}
4485
4486
+ assert(!witnessSubstTy->hasError());
4487
+
4488
if (auto genericFnType = dyn_cast<GenericFunctionType>(reqtSubstTy)) {
4489
auto forwardingSubs = F.getForwardingSubstitutionMap();
4490
reqtSubstTy = cast<FunctionType>(genericFnType
@@ -4493,6 +4495,8 @@ void SILGenFunction::emitProtocolWitness(
4493
4495
4494
4496
4497
4498
+ assert(!reqtSubstTy->hasError());
4499
4500
// Get the lowered type of the witness.
4501
auto origWitnessFTy = getWitnessFunctionType(getTypeExpansionContext(), SGM,
4502
witness, witnessKind);
0 commit comments