mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
AST: Add a new overload of getContextSubstitutionMap()
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user