[ASTMangler] Pass ASTContext to all instantiations of ASTMangler

This commit is contained in:
Kuba Mracek
2024-10-17 11:37:38 -07:00
parent 30cf6472af
commit 6f4ae28520
88 changed files with 335 additions and 315 deletions

View File

@@ -657,7 +657,7 @@ SILModule::lookUpDifferentiabilityWitness(StringRef name) {
SILDifferentiabilityWitness *
SILModule::lookUpDifferentiabilityWitness(SILDifferentiabilityWitnessKey key) {
Mangle::ASTMangler mangler;
Mangle::ASTMangler mangler(getASTContext());
return lookUpDifferentiabilityWitness(
mangler.mangleSILDifferentiabilityWitness(
key.originalFunctionName, key.kind, key.config));