[libcxx-commits] [libcxxabi] [libcxx] [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 Nov 22 05:01:28 PST 2023
================
@@ -1077,6 +1077,17 @@ __sanitizer_verify_double_ended_contiguous_container(const void*, const void*, c
# define _LIBCPP_HAS_NO_RTTI
# endif
+// Same as _LIBCXXABI_DTOR_FUNC in libcxxabi, we need this when working with ABI in exceptions code
+# if defined(_WIN32)
+# define _LIBCXX_DTOR_FUNC __thiscall
+# else
+# define _LIBCXX_DTOR_FUNC
+# endif
+
+# if !defined(_LIBCPP_HAS_NO_EXCEPTIONS) && !defined(_LIBCPP_HAS_NO_RTTI) && !defined(__APPLE__)
----------------
itrofimow wrote:
I changed this `ifdef` to be an availability macros instead: its' enabled when building and disabled for Apple vendoring (because the functionality is not yet released)
https://github.com/llvm/llvm-project/pull/65534
More information about the libcxx-commits
mailing list