[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:52 PST 2023


================
@@ -2508,6 +2509,7 @@
 {'is_defined': True, 'name': '___cxa_guard_abort', 'type': 'I'}
 {'is_defined': True, 'name': '___cxa_guard_acquire', 'type': 'I'}
 {'is_defined': True, 'name': '___cxa_guard_release', 'type': 'I'}
+{'is_defined': True, 'name': '___cxa_init_primary_exception', 'type': 'I'}
----------------
ldionne wrote:

We should be exporting `_ZNSt13exception_ptr31__from_native_exception_pointerEPv` & friends on Darwin too. You're guarding the definition of these functions in the dylib by `_LIBCPP_AVAILABILITY_HAS_INIT_PRIMARY_EXCEPTION` but you shouldn't -- that would solve this issue.

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


More information about the libcxx-commits mailing list