Skip to content

Commit c6efc83

Browse files
committed
PR feedback
1 parent f0e601c commit c6efc83

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

objcxx_eh.cc

+2-1
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,8 @@ void objc_exception_throw(id object)
558558
objc_retain(object);
559559
DEBUG_LOG("objc_exception_throw: Throwing 0x%x\n", *exc);
560560

561-
#ifdef _LIBCPP_VERSION
561+
#ifndef __GLIBCXX__
562+
// At the moment, only libstdc++ exposes __cxa_init_primary_exception
562563
__cxa_throw(exc, & __objc_id_type_info, eh_cleanup);
563564
#else
564565
__cxa_eh_globals *globals = __cxa_get_globals ();

0 commit comments

Comments
 (0)