mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[ASTMangler] Pass ASTContext to all instantiations of ASTMangler
This commit is contained in:
@@ -311,7 +311,7 @@ bool StringOptimization::optimizeTypeName(ApplyInst *typeNameCall) {
|
||||
bool isQualified = isQualifiedOpt.value();
|
||||
|
||||
// Create the constant type string by mangling + demangling.
|
||||
Mangle::ASTMangler mangler;
|
||||
Mangle::ASTMangler mangler(ty->getASTContext());
|
||||
std::string mangledTypeName = mangler.mangleTypeForTypeName(ty);
|
||||
|
||||
Demangle::DemangleOptions options;
|
||||
|
||||
Reference in New Issue
Block a user