mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[ASTMangler] Pass ASTContext to all instantiations of ASTMangler
This commit is contained in:
@@ -61,7 +61,7 @@ using namespace fine_grained_dependencies;
|
||||
static std::string identifierForContext(const DeclContext *DC) {
|
||||
if (!DC) return "";
|
||||
|
||||
Mangle::ASTMangler Mangler;
|
||||
Mangle::ASTMangler Mangler(DC->getASTContext());
|
||||
if (const auto *context = dyn_cast<NominalTypeDecl>(DC)) {
|
||||
return Mangler.mangleTypeAsContextUSR(context);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user