projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4f6de1d
)
tsan: fix clang warning:
author
Dmitry Vyukov
<dvyukov@google.com>
Fri, 6 Jun 2014 15:51:20 +0000
(15:51 +0000)
committer
Dmitry Vyukov
<dvyukov@google.com>
Fri, 6 Jun 2014 15:51:20 +0000
(15:51 +0000)
comparison of unsigned expression >= 0 is always true
llvm-svn: 210346
compiler-rt/lib/tsan/rtl/tsan_platform.h
patch
|
blob
|
history
diff --git
a/compiler-rt/lib/tsan/rtl/tsan_platform.h
b/compiler-rt/lib/tsan/rtl/tsan_platform.h
index a20f5fb9ac4a4e6966b947a64362dbf73e99bb15..7d8d9770e8aa659a1db0abc8e4243bf801b6e9c8 100644
(file)
--- 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