From feb4ede8ac8f9a48639ffb60c11531c1456f7c3c Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Fri, 6 Jun 2014 15:51:20 +0000 Subject: [PATCH] tsan: fix clang warning: comparison of unsigned expression >= 0 is always true llvm-svn: 210346 --- compiler-rt/lib/tsan/rtl/tsan_platform.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/compiler-rt/lib/tsan/rtl/tsan_platform.h b/compiler-rt/lib/tsan/rtl/tsan_platform.h index a20f5fb9ac4a..7d8d9770e8aa 100644 --- a/compiler-rt/lib/tsan/rtl/tsan_platform.h +++ b/compiler-rt/lib/tsan/rtl/tsan_platform.h @@ -131,6 +131,8 @@ static inline bool IsAppMem(uptr mem) { #if defined(TSAN_COMPAT_SHADOW) && TSAN_COMPAT_SHADOW return (mem >= kLinuxAppMemBeg && mem < kAppMemGapBeg) || (mem >= kAppMemGapEnd && mem <= kLinuxAppMemEnd); +#elif defined(TSAN_GO) + return mem <= kLinuxAppMemEnd; #else return mem >= kLinuxAppMemBeg && mem <= kLinuxAppMemEnd; #endif -- 2.34.1