[clang] [CodeGen] Add CodeGenModule::forgetDecl to discard cached mangled-name state (PR #234493)
Vassil Vassilev via cfe-commits
cfe-commits at lists.llvm.org
Tue Nov 24 00:46:27 PST 2026
================
@@ -260,9 +264,27 @@ class ASTDeclUnmerger : public DeclVisitor<ASTDeclUnmerger> {
}
}
+ void forgetMangledNames(std::initializer_list<GlobalDecl> GDs) {
+ if (!CodeGen)
+ return;
+ for (GlobalDecl GD : GDs) {
+#if defined(_WIN32)
----------------
vgvassilev wrote:
Here we might be cross compiling -- we should check the target triple instead.
https://github.com/llvm/llvm-project/pull/234493
More information about the cfe-commits
mailing list