@@ -2170,7 +2170,7 @@ void ASTMangler::appendRetroactiveConformances(SubstitutionMap subMap,
21702170 if (conformance.isInvalid ())
21712171 continue ;
21722172
2173- if (conformance.getRequirement ()->isMarkerProtocol ())
2173+ if (conformance.getProtocol ()->isMarkerProtocol ())
21742174 continue ;
21752175
21762176 SWIFT_DEFER {
@@ -4528,7 +4528,7 @@ void ASTMangler::appendAnyProtocolConformance(
45284528 // If we have a conformance to a marker protocol but we aren't allowed to
45294529 // emit marker protocols, skip it.
45304530 if (!AllowMarkerProtocols &&
4531- conformance.getRequirement ()->isMarkerProtocol ())
4531+ conformance.getProtocol ()->isMarkerProtocol ())
45324532 return ;
45334533
45344534 // While all invertible protocols are marker protocols, do not mangle them
@@ -4537,15 +4537,17 @@ void ASTMangler::appendAnyProtocolConformance(
45374537 // but we *might* have let that slip by for the other cases below, so the
45384538 // early-exits are highly conservative.
45394539 const bool forInvertible =
4540- conformance.getRequirement ()->getInvertibleProtocolKind ().has_value ();
4540+ conformance.getProtocol ()->getInvertibleProtocolKind ().has_value ();
45414541
45424542 if (conformingType->isTypeParameter ()) {
45434543 assert (genericSig && " Need a generic signature to resolve conformance" );
45444544 if (forInvertible)
45454545 return ;
45464546
4547+ // FIXME: conformingType parameter should no longer be needed, because
4548+ // its in conformance.
45474549 auto path = genericSig->getConformancePath (conformingType,
4548- conformance.getRequirement ());
4550+ conformance.getProtocol ());
45494551 appendDependentProtocolConformance (path, genericSig);
45504552 } else if (auto opaqueType = conformingType->getAs <OpaqueTypeArchetypeType>()) {
45514553 if (forInvertible)
@@ -4556,7 +4558,7 @@ void ASTMangler::appendAnyProtocolConformance(
45564558 ConformancePath conformancePath =
45574559 opaqueSignature->getConformancePath (
45584560 opaqueType->getInterfaceType (),
4559- conformance.getRequirement ());
4561+ conformance.getProtocol ());
45604562
45614563 // Append the conformance path with the signature of the opaque type.
45624564 appendDependentProtocolConformance (conformancePath, opaqueSignature);
0 commit comments