[compiler-rt] r210346 - tsan: fix clang warning:
Dmitry Vyukov
dvyukov at google.com
Fri Jun 6 08:51:20 PDT 2014
Author: dvyukov
Date: Fri Jun 6 10:51:20 2014
New Revision: 210346
URL: http://llvm.org/viewvc/llvm-project?rev=210346&view=rev
Log:
tsan: fix clang warning:
comparison of unsigned expression >= 0 is always true
Modified:
compiler-rt/trunk/lib/tsan/rtl/tsan_platform.h
Modified: compiler-rt/trunk/lib/tsan/rtl/tsan_platform.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/tsan/rtl/tsan_platform.h?rev=210346&r1=210345&r2=210346&view=diff
==============================================================================
--- compiler-rt/trunk/lib/tsan/rtl/tsan_platform.h (original)
+++ compiler-rt/trunk/lib/tsan/rtl/tsan_platform.h Fri Jun 6 10:51:20 2014
@@ -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
More information about the llvm-commits
mailing list