[compiler-rt] r203782 - Work around PR19125: -Wconstant-logical-operand false positive
Timur Iskhodzhanov
timurrrr at google.com
Thu Mar 13 03:43:02 PDT 2014
Author: timurrrr
Date: Thu Mar 13 05:43:02 2014
New Revision: 203782
URL: http://llvm.org/viewvc/llvm-project?rev=203782&view=rev
Log:
Work around PR19125: -Wconstant-logical-operand false positive
Modified:
compiler-rt/trunk/lib/asan/asan_poisoning.h
Modified: compiler-rt/trunk/lib/asan/asan_poisoning.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/asan_poisoning.h?rev=203782&r1=203781&r2=203782&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/asan_poisoning.h (original)
+++ compiler-rt/trunk/lib/asan/asan_poisoning.h Thu Mar 13 05:43:02 2014
@@ -44,7 +44,7 @@ ALWAYS_INLINE void FastPoisonShadow(uptr
// 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 {
More information about the llvm-commits
mailing list