[SILGen] Remove SubstitutionList from most of key-path SIL generation.

This commit is contained in:
Doug Gregor
2018-05-11 15:50:05 -07:00
parent 17572ced70
commit 1af6cb9b6e
3 changed files with 24 additions and 32 deletions

View File

@@ -1264,9 +1264,9 @@ void SILGenModule::tryEmitPropertyDescriptor(AbstractStorageDecl *decl) {
return;
}
SubstitutionList subs = {};
SubstitutionMap subs = {};
if (genericEnv)
subs = genericEnv->getForwardingSubstitutions();
subs = genericEnv->getForwardingSubstitutionMap();
if (auto sub = dyn_cast<SubscriptDecl>(decl)) {
for (auto *index : *sub->getIndices()) {