mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Serialization: Preserve identity of opened generic environments
We used to create a new environment for each opened archetype, which is incorrect when deserializing a nested type of another opened archetype.
This commit is contained in:
@@ -113,6 +113,7 @@ ModuleFile::ModuleFile(std::shared_ptr<const ModuleFileSharedCore> core)
|
||||
allocateBuffer(Types, core->Types);
|
||||
allocateBuffer(ClangTypes, core->ClangTypes);
|
||||
allocateBuffer(GenericSignatures, core->GenericSignatures);
|
||||
allocateBuffer(GenericEnvironments, core->GenericEnvironments);
|
||||
allocateBuffer(SubstitutionMaps, core->SubstitutionMaps);
|
||||
allocateBuffer(Identifiers, core->Identifiers);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user