Skip to content

Commit 1cad4a6

Browse files
committed
SILGen: Generate protocol self-conformance substitutions with the self conformance
1 parent f0e61d9 commit 1cad4a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/SILGen/SILGenType.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -749,7 +749,7 @@ static SILFunction *emitSelfConformanceWitness(SILGenModule &SGM,
749749
auto protocolType = protocol->getDeclaredInterfaceType();
750750
auto reqtSubs = SubstitutionMap::getProtocolSubstitutions(protocol,
751751
protocolType,
752-
ProtocolConformanceRef(protocol));
752+
ProtocolConformanceRef(conformance));
753753

754754
// Open the protocol type.
755755
auto openedType = OpenedArchetypeType::get(protocolType);

0 commit comments

Comments
 (0)