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:
eb5037c
)
[tsan] Fix check-tsan build by using CHECK_NE.
author
Yabin Cui
<yabinc@google.com>
Tue, 22 Mar 2016 18:12:18 +0000
(18:12 +0000)
committer
Yabin Cui
<yabinc@google.com>
Tue, 22 Mar 2016 18:12:18 +0000
(18:12 +0000)
Reviewers: llvm-commits, srhines, dvyukov
Subscribers: srhines
Differential Revision: http://reviews.llvm.org/D18361
llvm-svn: 264079
compiler-rt/lib/tsan/rtl/tsan_platform_linux.cc
patch
|
blob
|
history
diff --git
a/compiler-rt/lib/tsan/rtl/tsan_platform_linux.cc
b/compiler-rt/lib/tsan/rtl/tsan_platform_linux.cc
index
aa36fc4
..
3301fde
100644
(file)
--- a/
compiler-rt/lib/tsan/rtl/tsan_platform_linux.cc
+++ b/
compiler-rt/lib/tsan/rtl/tsan_platform_linux.cc
@@
-302,7
+302,7
@@
void InitializePlatform() {
Report("WARNING: Program is run with randomized virtual address space,"
" which wouldn't work with ThreadSanitizer.\n");
Report("Re-execing with fixed virtual address space.\n");
- CHECK
(personality(old_personality | ADDR_NO_RANDOMIZE) != -1
);
+ CHECK
_NE(-1, personality(old_personality | ADDR_NO_RANDOMIZE)
);
reexec = true;
}
#endif