Skip to content
Snippets Groups Projects
Commit ca397448 authored by Frederich Munch's avatar Frederich Munch Committed by Axel Naumann
Browse files

Fix return value for __cxa_atexit.

parent 53292697
Loading
......@@ -26,9 +26,10 @@ using namespace llvm;
namespace {
// Forward cxa_atexit for global d'tors.
static void local_cxa_atexit(void (*func) (void*), void* arg, void* dso) {
static int local_cxa_atexit(void (*func) (void*), void* arg, void* dso) {
cling::IncrementalExecutor* exe = (cling::IncrementalExecutor*)dso;
exe->AddAtExitFunc(func, arg);
return 0;
}
///\brief Memory manager providing the lop-level link to the
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment