[PATCH] D156795: [CUDA][HIP] Fix overloading resolution of delete operator

Yaxun Liu via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Aug 1 07:18:34 PDT 2023


yaxunl created this revision.
yaxunl added a reviewer: tra.
Herald added a subscriber: mattd.
Herald added a project: All.
yaxunl requested review of this revision.

Currently clang does not consider host/device preference when resolving delete operator in the file scope, which causes device operator delete selected for class member initialization.


https://reviews.llvm.org/D156795

Files:
  clang/lib/Sema/SemaExprCXX.cpp
  clang/test/CodeGenCUDA/member-init.cu
  clang/test/SemaCUDA/member-init.cu

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D156795.546045.patch
Type: text/x-patch
Size: 3171 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230801/cb1c426d/attachment.bin>


More information about the cfe-commits mailing list