[clang] [lldb] Reland [MS][clang] Add support for vector deleting destructors (PR #165598)

Mariya Podchishchaeva via cfe-commits cfe-commits at lists.llvm.org
Wed Nov 5 03:17:49 PST 2025


================
@@ -3146,7 +3198,8 @@ bool CXXDestructorDecl::isCalledByDelete(const FunctionDecl *OpDel) const {
   // delete operator, as that destructor is never called, unless the
   // destructor is virtual (see [expr.delete]p8.1) because then the
   // selected operator depends on the dynamic type of the pointer.
-  const FunctionDecl *SelectedOperatorDelete = OpDel ? OpDel : OperatorDelete;
+  const FunctionDecl *SelectedOperatorDelete =
+      OpDel ? OpDel : getOperatorDelete();
----------------
Fznamznon wrote:

That is not a pure formatting change, it changes direct access of `OperatorDelete` field to `getOperatorDelete()` member call because there is no field anymore.

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


More information about the cfe-commits mailing list