mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
IRGen: Use getSelfTypeInContext() in one spot
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user