[compiler-rt] 26b3ea2 - fix SANITIZE_WINDOWS pragma for https://reviews.llvm.org/rG60e5243e593ec7e0feca42783edb735e9ac2c4a7
Kevin Athey via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 4 16:47:02 PDT 2021
Author: Kevin Athey
Date: 2021-06-04T16:46:54-07:00
New Revision: 26b3ea224e7744058c0053e8eee25a8a3acc9f5d
URL: https://github.com/llvm/llvm-project/commit/26b3ea224e7744058c0053e8eee25a8a3acc9f5d
DIFF: https://github.com/llvm/llvm-project/commit/26b3ea224e7744058c0053e8eee25a8a3acc9f5d.diff
LOG: fix SANITIZE_WINDOWS pragma for https://reviews.llvm.org/rG60e5243e593ec7e0feca42783edb735e9ac2c4a7
Added:
Modified:
compiler-rt/lib/asan/asan_rtl.cpp
Removed:
################################################################################
diff --git a/compiler-rt/lib/asan/asan_rtl.cpp b/compiler-rt/lib/asan/asan_rtl.cpp
index 685ce03b69d0..2d869554b41b 100644
--- a/compiler-rt/lib/asan/asan_rtl.cpp
+++ b/compiler-rt/lib/asan/asan_rtl.cpp
@@ -401,12 +401,12 @@ static bool UNUSED __local_asan_dyninit = [] {
static void InitAsanOptionDetectStackUseAfterReturn() {
__asan_option_detect_stack_use_after_return =
flags()->detect_stack_use_after_return;
- if (!SANITIZER_WINDOWS) {
- if (&__asan_detect_use_after_return_always) {
- CHECK_EQ(1, __asan_detect_use_after_return_always);
- __asan_option_detect_stack_use_after_return = 1;
- }
+#if !SANITIZER_WINDOWS
+ if (&__asan_detect_use_after_return_always) {
+ CHECK_EQ(1, __asan_detect_use_after_return_always);
+ __asan_option_detect_stack_use_after_return = 1;
}
+#endif // !SANITIZER_WINDOWS
}
static void AsanInitInternal() {
More information about the llvm-commits
mailing list