diff options
| author | Hans Wennborg <hans@hanshq.net> | 2015-12-09 21:43:03 +0000 |
|---|---|---|
| committer | Hans Wennborg <hans@hanshq.net> | 2015-12-09 21:43:03 +0000 |
| commit | 63011e91d1b5716eeecf2483746f4cf8189c6723 (patch) | |
| tree | 7110b09cafc59752704b29455d2e0329ee3109d5 /compiler-rt | |
| parent | 6c29ca7dd0cfa3e55987239a65610debcba1e63d (diff) | |
| download | bcm5719-llvm-63011e91d1b5716eeecf2483746f4cf8189c6723.tar.gz bcm5719-llvm-63011e91d1b5716eeecf2483746f4cf8189c6723.zip | |
asan_win_dynamic_runtime_thunk.cc: declare atexit
MSVC apparently makes atexit available even without including stdlib.h,
but clang-cl does not. This makes the file build also with clang-cl.
llvm-svn: 255160
Diffstat (limited to 'compiler-rt')
| -rw-r--r-- | compiler-rt/lib/asan/asan_win_dynamic_runtime_thunk.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler-rt/lib/asan/asan_win_dynamic_runtime_thunk.cc b/compiler-rt/lib/asan/asan_win_dynamic_runtime_thunk.cc index d5a14088dac..73e5207bb33 100644 --- a/compiler-rt/lib/asan/asan_win_dynamic_runtime_thunk.cc +++ b/compiler-rt/lib/asan/asan_win_dynamic_runtime_thunk.cc @@ -59,6 +59,7 @@ int __asan_option_detect_stack_use_after_return = // using atexit() that calls a small subset of C terminators // where LLVM global_dtors is placed. Fingers crossed, no other C terminators // are there. +extern "C" int __cdecl atexit(void (__cdecl *f)(void)); extern "C" void __cdecl _initterm(void *a, void *b); namespace { |

