Skip to content

Commit 764caba

Browse files
committed
add a comment about __OBJC__ define
1 parent 9f88c67 commit 764caba

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

libcxx/include/__exception/exception_ptr.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +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+
// Clang treats throwing ObjC types differently, and we have to preserve original throw-ing behavior
9596
# if !defined(__OBJC__) && _LIBCPP_AVAILABILITY_HAS_INIT_PRIMARY_EXCEPTION && __cplusplus >= 201103L
9697
using _Ep2 = __decay_t<_Ep>;
9798

0 commit comments

Comments
 (0)