[clang] [clang] Do not diagnose unused deleted operator delete[] (PR #134357)

Mariya Podchishchaeva via cfe-commits cfe-commits at lists.llvm.org
Fri Apr 4 05:06:06 PDT 2025


================
@@ -2878,7 +2878,7 @@ class CXXDestructorDecl : public CXXMethodDecl {
   static CXXDestructorDecl *CreateDeserialized(ASTContext &C, GlobalDeclID ID);
 
   void setOperatorDelete(FunctionDecl *OD, Expr *ThisArg);
-  void setOperatorArrayDelete(FunctionDecl *OD, Expr *ThisArg);
+  void setOperatorArrayDelete(FunctionDecl *OD);
----------------
Fznamznon wrote:

Yeah, this is a drive-by removal of unused argument added by a patch that caused the bug this patch is fixing.

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


More information about the cfe-commits mailing list