[libcxx-commits] [libcxx] [libcxxabi] [libc++] [libc++abi] Initialize exception directly in make_exception_ptr if __cxa_init_primary_exception is available in ABI-library (PR #65534)
Louis Dionne via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Dec 5 10:58:49 PST 2023
================
@@ -1023,6 +1023,13 @@ __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
+
----------------
ldionne wrote:
According to https://learn.microsoft.com/en-us/cpp/cpp/thiscall?view=msvc-170, it doesn't seem like this should be needed.
https://github.com/llvm/llvm-project/pull/65534
More information about the libcxx-commits
mailing list