Skip to content
This repository was archived by the owner on Aug 2, 2023. It is now read-only.

Commit 73147d3

Browse files
authored
Merge pull request #108 from bitstadium/feature/xcode9
Replace LIBCXXABI_NORETURN with the attribute it represented
2 parents e310651 + bd4ae7f commit 73147d3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Classes/CrashReporting/BITCrashCXXExceptionHandler.mm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
@implementation BITCrashUncaughtCXXExceptionHandlerManager
2828

29-
extern "C" void LIBCXXABI_NORETURN __cxa_throw(void *exception_object, std::type_info *tinfo, void (*dest)(void *))
29+
extern "C" void __attribute__((noreturn)) __cxa_throw(void *exception_object, std::type_info *tinfo, void (*dest)(void *))
3030
{
3131
// Purposely do not take a lock in this function. The aim is to be as fast as
3232
// possible. While we could really use some of the info set up by the real
@@ -40,7 +40,7 @@ @implementation BITCrashUncaughtCXXExceptionHandlerManager
4040
// implementation changing in a future version. (Or not existing in an earlier
4141
// version).
4242

43-
typedef void (*cxa_throw_func)(void *, std::type_info *, void (*)(void *)) LIBCXXABI_NORETURN;
43+
typedef void (*cxa_throw_func)(void *, std::type_info *, void (*)(void *)) __attribute__((noreturn));
4444
static dispatch_once_t predicate = 0;
4545
static cxa_throw_func __original__cxa_throw = nullptr;
4646
static const void **__real_objc_ehtype_vtable = nullptr;

0 commit comments

Comments
 (0)