Skip to content

Commit ebe19ca

Browse files
committed
IRGen: Use getSelfTypeInContext() in one spot
1 parent 7626eb1 commit ebe19ca

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/IRGen/GenMeta.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -817,9 +817,7 @@ namespace {
817817
conformance.getConcrete()->getType()->hasArchetype();
818818
if (hasArchetype) {
819819
// Bind local Self type data from the metadata argument.
820-
CanType selfInContext =
821-
Proto->mapTypeIntoContext(Proto->getProtocolSelfType())
822-
->getCanonicalType();
820+
auto selfInContext = Proto->getSelfTypeInContext()->getCanonicalType();
823821
IGF.bindLocalTypeDataFromTypeMetadata(selfInContext, IsExact, self,
824822
MetadataState::Abstract);
825823
IGF.setUnscopedLocalTypeData(

0 commit comments

Comments
 (0)