[clang] Remove device override for operator new when the C++ standard >= 26 (PR #114056)

Artem Belevich via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 29 10:32:56 PDT 2024


================
@@ -91,12 +91,14 @@ __device__ inline void operator delete[](void *ptr,
 #endif
 
 // Device overrides for placement new and delete.
+#if _LIBCPP_STD_VER < 26
----------------
Artem-B wrote:

This helps with libc++. 

Do we run into this issue with libstdc++, too? If so, we may check its version here, too.

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


More information about the cfe-commits mailing list