[clang] [clang] Fix ASTWriter crash after merging named enums (PR #114240)
Vassil Vassilev via cfe-commits
cfe-commits at lists.llvm.org
Mon Feb 3 23:48:18 PST 2025
================
@@ -2639,6 +2628,19 @@ void Sema::MergeTypedefNameDecl(Scope *S, TypedefNameDecl *New,
notePreviousDefinition(Old, New->getLocation());
}
+void Sema::CleanupMergedEnum(Scope *S, Decl *New) {
----------------
vgvassilev wrote:
I feel like this is a property of merging. Can we find a common path when merging definitions to put that logic there? Is `MergeTypedefNameDecl` not called for the motivating example?
https://github.com/llvm/llvm-project/pull/114240
More information about the cfe-commits
mailing list