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:
@@ -839,6 +839,10 @@ bool ModuleFileSharedCore::readIndexBlock(llvm::BitstreamCursor &cursor) {
|
||||
assert(blobData.empty());
|
||||
allocateBuffer(GenericSignatures, scratch);
|
||||
break;
|
||||
case index_block::GENERIC_ENVIRONMENT_OFFSETS:
|
||||
assert(blobData.empty());
|
||||
allocateBuffer(GenericEnvironments, scratch);
|
||||
break;
|
||||
case index_block::SUBSTITUTION_MAP_OFFSETS:
|
||||
assert(blobData.empty());
|
||||
allocateBuffer(SubstitutionMaps, scratch);
|
||||
|
||||
Reference in New Issue
Block a user