[clang] [win][clang] Align scalar deleting destructors with MSABI (PR #139566)
Mariya Podchishchaeva via cfe-commits
cfe-commits at lists.llvm.org
Tue Jun 10 04:20:35 PDT 2025
================
@@ -2885,6 +2886,16 @@ class CXXDestructorDecl : public CXXMethodDecl {
return getCanonicalDecl()->OperatorDelete;
}
+ const FunctionDecl *getOperatorGlobalDelete() const {
+ return getCanonicalDecl()->OperatorGlobalDelete;
+ }
+
+ void setOperatorGlobalDelete(FunctionDecl *OD) {
+ auto *First = cast<CXXDestructorDecl>(getFirstDecl());
----------------
Fznamznon wrote:
There isn't any except the existing similar code in `setOperatorDelete`/`getOperatorDelete`. I'll switch to always using `getCanonicalDecl`, maybe with a separate patch changing `setOperatorDelete`/`getOperatorDelete` as well. Thanks for pointing that out.
https://github.com/llvm/llvm-project/pull/139566
More information about the cfe-commits
mailing list