[libcxx-commits] [libcxxabi] [libc++] [libc++abi] Initialize exception directly in make_exception_ptr if __cxa_init_primary_exception is available in ABI-library (PR #65534)

via libcxx-commits libcxx-commits at lists.llvm.org
Wed Oct 25 00:01:35 PDT 2023


================
@@ -26,6 +28,22 @@ namespace std { // purposefully not using versioning namespace
 class _LIBCPP_EXPORTED_FROM_ABI exception_ptr {
   void* __ptr_;
 
+#  ifndef _LIBCPP_HAS_NO_EXCEPTIONS
+#    if defined(LIBCXXRT) || defined(LIBCXX_BUILDING_LIBCXXABI)
----------------
itrofimow wrote:

Initially i didn't want to do that due to some amount of copy-paste, but you're right, why not

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


More information about the libcxx-commits mailing list