[PATCH] D37539: [CUDA] Add device overloads for non-placement new/delete.

Justin Lebar via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Sep 6 17:29:09 PDT 2017


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


================
Comment at: clang/lib/Headers/cuda_wrappers/new:79
+}
+__device__ void operator delete[](void *ptr, std::size_t sz) CUDA_NOEXCEPT {
+  ::operator delete(ptr);
----------------
tra wrote:
> Is std::size_t intentional here?  You use __SIZE_TYPE__ everywhere else.
Fixed, thanks.


https://reviews.llvm.org/D37539





More information about the cfe-commits mailing list