We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f88c67 commit 764cabaCopy full SHA for 764caba
libcxx/include/__exception/exception_ptr.h
@@ -92,6 +92,7 @@ class _LIBCPP_EXPORTED_FROM_ABI exception_ptr {
92
template <class _Ep>
93
_LIBCPP_HIDE_FROM_ABI exception_ptr make_exception_ptr(_Ep __e) _NOEXCEPT {
94
# if _LIBCPP_HAS_EXCEPTIONS
95
+ // Clang treats throwing ObjC types differently, and we have to preserve original throw-ing behavior
96
# if !defined(__OBJC__) && _LIBCPP_AVAILABILITY_HAS_INIT_PRIMARY_EXCEPTION && __cplusplus >= 201103L
97
using _Ep2 = __decay_t<_Ep>;
98
0 commit comments