diff options
author | Kostya Serebryany <kcc@google.com> | 2013-04-05 14:40:25 +0000 |
---|---|---|
committer | Kostya Serebryany <kcc@google.com> | 2013-04-05 14:40:25 +0000 |
commit | a27bdf70ca24202dce21cf7c1a387aeaa400d889 (patch) | |
tree | 89e7bc0a6311be72249c791153a8f75ac6f9bde4 /lib/asan/asan_thread.cc | |
parent | cd3049da150124156502b1a8c05e4c4887786cc5 (diff) |
[sanitizer] found a bug by code inspection: CHECK(a=b) instead of CHECK(a==b). Was puzzled why lint did not catch it. Turns out this check was disabled for asan source. fix all cases and enable the check
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@178872 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/asan/asan_thread.cc')
-rw-r--r-- | lib/asan/asan_thread.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/asan/asan_thread.cc b/lib/asan/asan_thread.cc index 8cda54490..64d70d65c 100644 --- a/lib/asan/asan_thread.cc +++ b/lib/asan/asan_thread.cc @@ -129,7 +129,7 @@ thread_return_t AsanThread::ThreadStart(uptr os_id) { // start_routine_ == 0 if we're on the main thread or on one of the // OS X libdispatch worker threads. But nobody is supposed to call // ThreadStart() for the worker threads. - CHECK(tid() == 0); + CHECK_EQ(tid(), 0); return 0; } |