[PATCH] D47757: [Sema] Produce diagnostics when unavailable aligned allocation/deallocation functions are called
Artem Belevich via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Aug 17 15:27:45 PDT 2018
tra added a comment.
Talked to @ahatanak over IRC. It appears that this patch may have exposed a preexisting bug.
Apparently `delete t;` in test/SemaCUDA/call-host-fn-from-device.cu does actually end up calling `__host__ operator delete`. It should've picked `__device__ operator delete`, but it does not, so reporting an error here appears to be correct.
It's visible in AST and the IR.
@rsmith -- the original change was done a while back in https://reviews.llvm.org/rL283830. I assume it worked at that time and wonder if it's a (possibly not-so-)recent regression.
Repository:
rC Clang
https://reviews.llvm.org/D47757
More information about the cfe-commits
mailing list