Skip to content

Commit 51e0059

Browse files
committed
Minor cleanup in extracting interface type for a conformance.
1 parent 8584e97 commit 51e0059

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/SILGen/SILGenType.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -609,8 +609,7 @@ SILGenModule::emitProtocolWitness(ProtocolConformance *conformance,
609609
->getGenericEnvironmentOfContext();
610610

611611
auto conformanceDC = conformance->getDeclContext();
612-
Type concreteTy =
613-
conformanceDC->mapTypeOutOfContext(conformance->getType());
612+
Type concreteTy = conformanceDC->getSelfInterfaceType();
614613

615614
// FIXME: conformance substitutions should be in terms of interface types
616615
auto specialized = conformance;

0 commit comments

Comments
 (0)