[clang] [clang] Fix ASTWriter crash after merging named enums (PR #114240)
Michael Jabbour via cfe-commits
cfe-commits at lists.llvm.org
Tue Jan 21 00:58:29 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);
----------------
michael-jabbour-sonarsource wrote:
Thanks for the suggestion, done in f55ca2bdf0e0fabdc672f0f85007d091272a8891.
https://github.com/llvm/llvm-project/pull/114240
More information about the cfe-commits
mailing list