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 eaec6c9 commit 77793f4Copy full SHA for 77793f4
libc/src/stdlib/exit.cpp
@@ -24,7 +24,8 @@ extern "C" [[gnu::weak]] void __cxa_thread_finalize();
24
25
// TODO: use recursive mutex to protect this routine.
26
[[noreturn]] LLVM_LIBC_FUNCTION(void, exit, (int status)) {
27
- __cxa_thread_finalize();
+ if (__cxa_thread_finalize)
28
+ __cxa_thread_finalize();
29
__cxa_finalize(nullptr);
30
internal::exit(status);
31
}
0 commit comments