summaryrefslogtreecommitdiff
path: root/lib/asan/asan_poisoning.h
diff options
context:
space:
mode:
authorTimur Iskhodzhanov <timurrrr@google.com>2014-03-13 10:43:02 +0000
committerTimur Iskhodzhanov <timurrrr@google.com>2014-03-13 10:43:02 +0000
commit32bf2b69ae9316812795815ce8cec54329835d1b (patch)
tree20db136d04ab8ceb265ffd400765c212765e3c91 /lib/asan/asan_poisoning.h
parent9e3d8e217529ca919355bf369f6755513e57bc50 (diff)
Work around PR19125: -Wconstant-logical-operand false positive
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@203782 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/asan/asan_poisoning.h')
-rw-r--r--lib/asan/asan_poisoning.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/asan/asan_poisoning.h b/lib/asan/asan_poisoning.h
index 63ac81951..bd680ae94 100644
--- a/lib/asan/asan_poisoning.h
+++ b/lib/asan/asan_poisoning.h
@@ -44,7 +44,7 @@ ALWAYS_INLINE void FastPoisonShadow(uptr aligned_beg, uptr aligned_size,
// probably provide higher-level interface for these operations.
// For now, just memset on Windows.
if (value ||
- SANITIZER_WINDOWS ||
+ SANITIZER_WINDOWS == 1 ||
shadow_end - shadow_beg < common_flags()->clear_shadow_mmap_threshold) {
REAL(memset)((void*)shadow_beg, value, shadow_end - shadow_beg);
} else {