From 28f367d7b32b56771025c55fa6c7ae50aedd5cd0 Mon Sep 17 00:00:00 2001 From: Yabin Cui Date: Tue, 22 Mar 2016 18:12:18 +0000 Subject: [PATCH] [tsan] Fix check-tsan build by using CHECK_NE. 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 --- 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 -- 2.7.4