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

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Fri Apr 4 04:57:00 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);
----------------
AaronBallman wrote:

This looks like unrelated changes, but the changes themselves are correct.

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


More information about the cfe-commits mailing list