================ @@ -3482,15 +3486,40 @@ bool FunctionDecl::isDestroyingOperatorDelete() const { // Within a class C, a single object deallocation function with signature // (T, std::destroying_delete_t, <more params>) // is a destroying operator delete. - if (!isa<CXXMethodDecl>(this) || getOverloadedOperator() != OO_Delete || - getNumParams() < 2) + if (!isa<CXXMethodDecl>(this) || getOverloadedOperator() != OO_Delete) + return false; + ---------------- ojhunt wrote:
Done. <!-- Reviewable comment -OMoztno2qTNJjZNUOeU:b-896fix --> <!-- Sent from Reviewable.io --> https://github.com/llvm/llvm-project/pull/113510 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits