Merge pull request #16268 from DougGregor/substitution-map-ast-adoption

[AST] Adopt SubstitutionMap as the storage mechanism for substitutions
This commit is contained in:
Doug Gregor
2018-04-30 20:36:02 -07:00
committed by GitHub
12 changed files with 323 additions and 118 deletions

View File

@@ -852,6 +852,10 @@ bool ModuleFile::readIndexBlock(llvm::BitstreamCursor &cursor) {
assert(blobData.empty());
GenericEnvironments.assign(scratch.begin(), scratch.end());
break;
case index_block::SUBSTITUTION_MAP_OFFSETS:
assert(blobData.empty());
SubstitutionMaps.assign(scratch.begin(), scratch.end());
break;
case index_block::NORMAL_CONFORMANCE_OFFSETS:
assert(blobData.empty());
NormalConformances.assign(scratch.begin(), scratch.end());