summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/asan/asan_intercepted_functions.h
diff options
context:
space:
mode:
Diffstat (limited to 'compiler-rt/lib/asan/asan_intercepted_functions.h')
-rw-r--r--compiler-rt/lib/asan/asan_intercepted_functions.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/compiler-rt/lib/asan/asan_intercepted_functions.h b/compiler-rt/lib/asan/asan_intercepted_functions.h
index 676a842a3e7..842781cdb17 100644
--- a/compiler-rt/lib/asan/asan_intercepted_functions.h
+++ b/compiler-rt/lib/asan/asan_intercepted_functions.h
@@ -77,6 +77,12 @@ using __sanitizer::uptr;
# define ASAN_INTERCEPT___CXA_THROW 0
#endif
+#if !SANITIZER_WINDOWS
+# define ASAN_INTERCEPT___CXA_ATEXIT 1
+#else
+# define ASAN_INTERCEPT___CXA_ATEXIT 0
+#endif
+
# if SANITIZER_WINDOWS
extern "C" {
// Windows threads.
OpenPOWER on IntegriCloud