From a051bbb53f6de8c2db8adf934ef7a9f5951ed0b8 Mon Sep 17 00:00:00 2001 From: Shoaib Meenai Date: Sun, 23 May 2021 21:03:12 -0700 Subject: [PATCH] [libcxxabi] Use ASan interface header for declaration. NFC This was changed from using the header to using a forward declaration in c4600ccf891c, since older versions of the header didn't declare the function. At this point, it's been declared for ~3.5 years, and it should be pretty safe to assume that we can rely on the ASan interface header to provide a declaration instead of needing to write our own. Reviewed By: #libc_abi, ldionne Differential Revision: https://reviews.llvm.org/D103003 --- libcxxabi/src/cxa_exception.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libcxxabi/src/cxa_exception.cpp b/libcxxabi/src/cxa_exception.cpp index ef30fe75c3ed..510827a37bb7 100644 --- a/libcxxabi/src/cxa_exception.cpp +++ b/libcxxabi/src/cxa_exception.cpp @@ -20,7 +20,7 @@ #include "include/atomic_support.h" #if __has_feature(address_sanitizer) -extern "C" void __asan_handle_no_return(void); +#include #endif // +---------------------------+-----------------------------+---------------+