[clang] [win][clang] Align scalar deleting destructors with MSABI (PR #139566)

Mariya Podchishchaeva via cfe-commits cfe-commits at lists.llvm.org
Thu Jun 26 06:06:07 PDT 2025


================
@@ -3101,6 +3101,17 @@ void CXXDestructorDecl::setOperatorDelete(FunctionDecl *OD, Expr *ThisArg) {
   }
 }
 
+void CXXDestructorDecl::setOperatorGlobalDelete(FunctionDecl *OD) {
+  assert(!OD || (OD->getDeclName().getCXXOverloadedOperator() == OO_Delete &&
+                 OD->isUsableAsGlobalAllocationFunctionInConstantEvaluation()));
----------------
Fznamznon wrote:

ok, done.

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


More information about the cfe-commits mailing list