AST: Add a new overload of getContextSubstitutionMap()

This commit is contained in:
Slava Pestov
2024-07-07 12:07:01 -04:00
parent 2adad14f7b
commit 977b444eb3
25 changed files with 54 additions and 66 deletions

View File

@@ -325,9 +325,8 @@ bool ArrayAllocation::replaceAppendContentOf() {
continue;
SILType ArrayType = ArrayValue->getType();
auto *NTD = ArrayType.getASTType()->getAnyNominal();
SubstitutionMap ArraySubMap = ArrayType.getASTType()
->getContextSubstitutionMap(NTD);
->getContextSubstitutionMap();
AppendContentsOf.replaceByAppendingValues(AppendFn, ReserveFn,
ElementValueVector,