Serialization: Replace a mapTypeOutOfContext() call with ArchetypeType::getInterfaceType()

This commit is contained in:
Slava Pestov
2017-10-07 04:39:29 -07:00
parent 6111a6a964
commit 4bd2b305f9

View File

@@ -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,