[PATCH] D29993: Use pthreads to store current thread id on darwin

Kuba (Brecka) Mracek via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 16 19:05:56 PST 2017


kubamracek accepted this revision.
kubamracek added a comment.
This revision is now accepted and ready to land.

LGTM with a nit.



================
Comment at: lib/lsan/lsan_common_mac.cc:25
 
+typedef struct thread_info {
+  int disable_counter = 0;
----------------
Remove "thread_info", we already have "thread_local_data_t" below. (Or change this to a C++-ish declaration, up to you.)


https://reviews.llvm.org/D29993





More information about the llvm-commits mailing list