Skip to content

Commit 9f88c67

Browse files
committed
fix std::make_exception_ptr interaction with ObjC
1 parent 76b85d3 commit 9f88c67

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libcxx/include/__exception/exception_ptr.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ class _LIBCPP_EXPORTED_FROM_ABI exception_ptr {
9292
template <class _Ep>
9393
_LIBCPP_HIDE_FROM_ABI exception_ptr make_exception_ptr(_Ep __e) _NOEXCEPT {
9494
# if _LIBCPP_HAS_EXCEPTIONS
95-
# if _LIBCPP_AVAILABILITY_HAS_INIT_PRIMARY_EXCEPTION && __cplusplus >= 201103L
95+
# if !defined(__OBJC__) && _LIBCPP_AVAILABILITY_HAS_INIT_PRIMARY_EXCEPTION && __cplusplus >= 201103L
9696
using _Ep2 = __decay_t<_Ep>;
9797

9898
void* __ex = __cxxabiv1::__cxa_allocate_exception(sizeof(_Ep));

0 commit comments

Comments
 (0)