IRGen: Use getSelfTypeInContext() in one spot

This commit is contained in:
Slava Pestov
2018-10-15 20:24:38 -07:00
parent 7626eb1571
commit ebe19ca69e

View File

@@ -817,9 +817,7 @@ namespace {
conformance.getConcrete()->getType()->hasArchetype();
if (hasArchetype) {
// Bind local Self type data from the metadata argument.
CanType selfInContext =
Proto->mapTypeIntoContext(Proto->getProtocolSelfType())
->getCanonicalType();
auto selfInContext = Proto->getSelfTypeInContext()->getCanonicalType();
IGF.bindLocalTypeDataFromTypeMetadata(selfInContext, IsExact, self,
MetadataState::Abstract);
IGF.setUnscopedLocalTypeData(