[libcxx-commits] [libcxx] [libc++] fix linkage for platforms that don't implement std::exception_ptr (PR #79040)
via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Jan 22 11:25:51 PST 2024
https://github.com/itrofimow created https://github.com/llvm/llvm-project/pull/79040
None
>From 2daeefdddbe9a10b2f157118d1de4fcea80766ba Mon Sep 17 00:00:00 2001
From: Ivan Trofimov <i.trofimow at yandex.ru>
Date: Mon, 22 Jan 2024 22:24:20 +0300
Subject: [PATCH] [libc++] fix linkage for platforms that don't implement
std::exception_ptr
---
.../src/support/runtime/exception_pointer_unimplemented.ipp | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/libcxx/src/support/runtime/exception_pointer_unimplemented.ipp b/libcxx/src/support/runtime/exception_pointer_unimplemented.ipp
index de0605d7774b8a..e12b0caf419d24 100644
--- a/libcxx/src/support/runtime/exception_pointer_unimplemented.ipp
+++ b/libcxx/src/support/runtime/exception_pointer_unimplemented.ipp
@@ -30,6 +30,12 @@ exception_ptr& exception_ptr::operator=(const exception_ptr& other) noexcept {
::abort();
}
+exception_ptr exception_ptr::__from_native_exception_pointer(void *__e) noexcept {
+#warning exception_ptr not yet implemented
+ fprintf(stderr, "exception_ptr not yet implemented\n");
+ ::abort();
+}
+
nested_exception::nested_exception() noexcept : __ptr_(current_exception()) {}
#if !defined(__GLIBCXX__)
More information about the libcxx-commits
mailing list