[clang] [Sema] Instantiate destructors for initialized anonymous union fields (PR #128866)

via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 5 00:42:15 PST 2025


================
@@ -5432,6 +5432,9 @@ class Sema final : public SemaBase {
   void MarkBaseAndMemberDestructorsReferenced(SourceLocation Loc,
                                               CXXRecordDecl *Record);
 
+  void MarkBaseDestructorsReferenced(SourceLocation Loc, CXXRecordDecl *Record);
+  void MarkFieldDestructorReferenced(SourceLocation Loc, FieldDecl *Field);
----------------
cor3ntin wrote:

I feel these should just be static functions in the cpp file

https://github.com/llvm/llvm-project/pull/128866


More information about the cfe-commits mailing list