mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[Serialization] Give generic environments identitity.
Serialize generic environments via a generic environment ID with a separte offset table, so we have identity for the generic environments and will share generic environments on deserialization.
This commit is contained in:
@@ -535,6 +535,10 @@ bool ModuleFile::readIndexBlock(llvm::BitstreamCursor &cursor) {
|
||||
assert(blobData.empty());
|
||||
LocalDeclContexts.assign(scratch.begin(), scratch.end());
|
||||
break;
|
||||
case index_block::GENERIC_ENVIRONMENT_OFFSETS:
|
||||
assert(blobData.empty());
|
||||
GenericEnvironments.assign(scratch.begin(), scratch.end());
|
||||
break;
|
||||
case index_block::NORMAL_CONFORMANCE_OFFSETS:
|
||||
assert(blobData.empty());
|
||||
NormalConformances.assign(scratch.begin(), scratch.end());
|
||||
|
||||
Reference in New Issue
Block a user