summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--compiler-rt/lib/tsan/rtl/tsan_platform_linux.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler-rt/lib/tsan/rtl/tsan_platform_linux.cc b/compiler-rt/lib/tsan/rtl/tsan_platform_linux.cc
index aa36fc4d445..3301fdee0e5 100644
--- 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
OpenPOWER on IntegriCloud