[clang] [win][clang] Align scalar deleting destructors with MSABI (PR #139566)
Mariya Podchishchaeva via cfe-commits
cfe-commits at lists.llvm.org
Wed Jun 18 06:50:15 PDT 2025
================
@@ -2886,6 +2887,16 @@ class CXXDestructorDecl : public CXXMethodDecl {
return getCanonicalDecl()->OperatorDelete;
}
+ const FunctionDecl *getOperatorGlobalDelete() const {
+ return getCanonicalDecl()->OperatorGlobalDelete;
+ }
+
+ void setOperatorGlobalDelete(FunctionDecl *OD) {
----------------
Fznamznon wrote:
Very unobvious from its name, but `FunctionDecl->isUsableAsGlobalAllocationFunctionInConstantEvaluation` seems to be doing the right thing.
https://github.com/llvm/llvm-project/pull/139566
More information about the cfe-commits
mailing list