[libcxx-commits] [libcxxabi] a051bbb - [libcxxabi] Use ASan interface header for declaration. NFC

Shoaib Meenai via libcxx-commits libcxx-commits at lists.llvm.org
Tue May 25 13:07:26 PDT 2021


Author: Shoaib Meenai
Date: 2021-05-25T13:07:13-07:00
New Revision: a051bbb53f6de8c2db8adf934ef7a9f5951ed0b8

URL: https://github.com/llvm/llvm-project/commit/a051bbb53f6de8c2db8adf934ef7a9f5951ed0b8
DIFF: https://github.com/llvm/llvm-project/commit/a051bbb53f6de8c2db8adf934ef7a9f5951ed0b8.diff

LOG: [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

Added: 
    

Modified: 
    libcxxabi/src/cxa_exception.cpp

Removed: 
    


################################################################################
diff  --git a/libcxxabi/src/cxa_exception.cpp b/libcxxabi/src/cxa_exception.cpp
index ef30fe75c3ed1..510827a37bb74 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 <sanitizer/asan_interface.h>
 #endif
 
 // +---------------------------+-----------------------------+---------------+


        


More information about the libcxx-commits mailing list