[clang] [clang] Fix ASTWriter crash after merging named enums (PR #114240)
via cfe-commits
cfe-commits at lists.llvm.org
Mon Jan 13 08:29:47 PST 2025
================
@@ -4034,6 +4034,12 @@ class Sema final : public SemaBase {
void MergeTypedefNameDecl(Scope *S, TypedefNameDecl *New,
LookupResult &OldDecls);
+ /// RetireNodesFromMergedDecl - We have just merged the decl 'New' by making
+ /// another definition visible.
+ /// This method performs any necessary cleanup on the parser state to discard
+ /// child nodes from newly parsed decl we are retiring.
+ void RetireNodesFromMergedDecl(Scope *S, Decl *New);
----------------
cor3ntin wrote:
```suggestion
void CleanupMergedEnum(Scope *S, Decl *New);
```
Maybe something like that is clearer
https://github.com/llvm/llvm-project/pull/114240
More information about the cfe-commits
mailing list