mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Serialization: Replace a mapTypeOutOfContext() call with ArchetypeType::getInterfaceType()
This commit is contained in:
@@ -3418,7 +3418,7 @@ void Serializer::writeType(Type ty) {
|
||||
assert(env && "Primary archetype without generic environment?");
|
||||
|
||||
GenericEnvironmentID envID = addGenericEnvironmentRef(env);
|
||||
Type interfaceType = env->mapTypeOutOfContext(archetypeTy);
|
||||
Type interfaceType = archetypeTy->getInterfaceType();
|
||||
|
||||
unsigned abbrCode = DeclTypeAbbrCodes[ArchetypeTypeLayout::Code];
|
||||
ArchetypeTypeLayout::emitRecord(Out, ScratchRecord, abbrCode,
|
||||
|
||||
Reference in New Issue
Block a user