diff options
author | Reid Kleckner <reid@kleckner.net> | 2015-02-17 21:57:42 +0000 |
---|---|---|
committer | Reid Kleckner <reid@kleckner.net> | 2015-02-17 21:57:42 +0000 |
commit | 72224c687197f12060fced00f41c09b92001f406 (patch) | |
tree | 462d64b83ecc47c73ce505853cd28c28c715ab85 /lib/sanitizer_common/sanitizer_common_libcdep.cc | |
parent | 3e68f3b22a5a5a1d37f8d0468be392a35300083d (diff) |
Silence an MSVC warning about testing a function for truth without calling it
In general, this is a reasonable warning, except real_pthread_create is
weak and can be null. The existing usage is correct as it the function
is declared with SANITIZER_WEAK, but MSVC can't know that because it is
defined to nothing on Windows.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@229562 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/sanitizer_common/sanitizer_common_libcdep.cc')
-rw-r--r-- | lib/sanitizer_common/sanitizer_common_libcdep.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sanitizer_common/sanitizer_common_libcdep.cc b/lib/sanitizer_common/sanitizer_common_libcdep.cc index e357e1cbb..17ef6897b 100644 --- a/lib/sanitizer_common/sanitizer_common_libcdep.cc +++ b/lib/sanitizer_common/sanitizer_common_libcdep.cc @@ -121,7 +121,7 @@ void MaybeStartBackgroudThread() { // Start the background thread if one of the rss limits is given. if (!common_flags()->hard_rss_limit_mb && !common_flags()->soft_rss_limit_mb) return; - if (!real_pthread_create) return; // Can't spawn the thread anyway. + if (!&real_pthread_create) return; // Can't spawn the thread anyway. internal_start_thread(BackgroundThread, nullptr); } |