[PATCH] D64569: [OpenCL] Improve destructor support in C++ for OpenCL

Marco Antognini via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Jul 18 09:47:51 PDT 2019


mantognini marked an inline comment as done.
mantognini added inline comments.


================
Comment at: clang/lib/CodeGen/ItaniumCXXABI.cpp:1758-1764
+  if (CE) {
+    ThisTy = CE->getImplicitObjectArgument()->getType();
+    if (ThisTy->isPointerType())
+      ThisTy = ThisTy->getPointeeType();
+  } else {
+    ThisTy = D->getDestroyedType();
+  }
----------------
This is the fix for PR42665. I've just realised that the same should be done in `MicrosoftCXXABI.cpp` -- will do that tomorrow.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D64569/new/

https://reviews.llvm.org/D64569





More information about the cfe-commits mailing list