[libcxx-commits] [PATCH] D75795: [libc++abi] Change __cxa_finalize return type to void

Ryan Prichard via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Fri Mar 6 20:54:56 PST 2020

rprichard created this revision.
Herald added a reviewer: EricWF.
Herald added subscribers: libcxx-commits, ldionne.
Herald added a project: libc++.
rprichard added reviewers: ldionne, compnerd.
Herald added a subscriber: dexonsmith.
Herald added a reviewer: mclow.lists.

The return type of __cxa_finalize is documented as void in the Itanium
C++ ABI, and it is void in various C libraries.

  rG LLVM Github Monorepo



Index: libcxxabi/include/cxxabi.h
--- libcxxabi/include/cxxabi.h
+++ libcxxabi/include/cxxabi.h
@@ -138,7 +138,7 @@
 // Runtime API
 extern _LIBCXXABI_FUNC_VIS int __cxa_atexit(void (*f)(void *), void *p,
                                             void *d);
-extern _LIBCXXABI_FUNC_VIS int __cxa_finalize(void *);
+extern _LIBCXXABI_FUNC_VIS void __cxa_finalize(void*);
 // 3.4 Demangler API
 extern _LIBCXXABI_FUNC_VIS char *__cxa_demangle(const char *mangled_name,

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D75795.248888.patch
Type: text/x-patch
Size: 547 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20200307/2e2594df/attachment.bin>

More information about the libcxx-commits mailing list