Skip to content

Commit 4bd2b30

Browse files
committed
Serialization: Replace a mapTypeOutOfContext() call with ArchetypeType::getInterfaceType()
1 parent 6111a6a commit 4bd2b30

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Serialization/Serialization.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3418,7 +3418,7 @@ void Serializer::writeType(Type ty) {
34183418
assert(env && "Primary archetype without generic environment?");
34193419

34203420
GenericEnvironmentID envID = addGenericEnvironmentRef(env);
3421-
Type interfaceType = env->mapTypeOutOfContext(archetypeTy);
3421+
Type interfaceType = archetypeTy->getInterfaceType();
34223422

34233423
unsigned abbrCode = DeclTypeAbbrCodes[ArchetypeTypeLayout::Code];
34243424
ArchetypeTypeLayout::emitRecord(Out, ScratchRecord, abbrCode,

0 commit comments

Comments
 (0)