[compiler-rt] [MSVC][ASan] fix interface header (PR #70992)
nicole mazzuca via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 1 14:43:16 PDT 2023
https://github.com/strega-nil created https://github.com/llvm/llvm-project/pull/70992
looks like there may be some missing testing here.
>From 2ca50d65b1b7179c44c80416b78a417af44f36de Mon Sep 17 00:00:00 2001
From: Nicole Mazzuca <nicole at strega-nil.co>
Date: Wed, 1 Nov 2023 13:05:21 -0700
Subject: [PATCH] [MSVC][ASan] fix interface header
looks like there may be some missing testing here.
---
compiler-rt/include/sanitizer/common_interface_defs.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/compiler-rt/include/sanitizer/common_interface_defs.h b/compiler-rt/include/sanitizer/common_interface_defs.h
index 0bbade454244a0c..5a78bb1a23a29df 100644
--- a/compiler-rt/include/sanitizer/common_interface_defs.h
+++ b/compiler-rt/include/sanitizer/common_interface_defs.h
@@ -298,7 +298,7 @@ void SANITIZER_CDECL __sanitizer_symbolize_global(void *data_ptr,
#define __sanitizer_return_address() \
__builtin_extract_return_addr(__builtin_return_address(0))
#else
-extern "C" void *SANITIZER_CDECL _ReturnAddress(void);
+void *SANITIZER_CDECL _ReturnAddress(void);
#pragma intrinsic(_ReturnAddress)
#define __sanitizer_return_address() _ReturnAddress()
#endif
More information about the llvm-commits
mailing list