AST: Remove GenericSignature::getSubstitutionMap()

This commit is contained in:
Slava Pestov
2018-05-28 18:42:50 -07:00
parent a1c6f069c5
commit d8fc9decf9
24 changed files with 157 additions and 148 deletions

View File

@@ -183,7 +183,8 @@ public:
if (genericParams.size() != args.size())
return Type();
auto subMap = genericSig->getSubstitutionMap(
auto subMap = SubstitutionMap::get(
genericSig,
[&](SubstitutableType *t) -> Type {
for (unsigned i = 0, e = genericParams.size(); i < e; ++i) {
if (t->isEqual(genericParams[i]))