Commit c29b9ae
Alexey Samsonov
[libc] Fix return value of __cxa_thread_atexit_impl function.
This has been added in 0071a79 to
support TLS destructors. Return value of __cxa_thread_atexit is
supposed to be the same as std::atexit - zero on success, non-zero
on failure. Update the code to do just that (also be consistent
with llvm-libc's existing atexit / at_quick_exit implementations).1 parent e93181b commit c29b9ae
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
120 | | - | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
121 | 123 | | |
122 | 124 | | |
123 | 125 | | |
| |||
0 commit comments