summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2017-03-03 18:21:04 +0000
committerZachary Turner <zturner@google.com>2017-03-03 18:21:04 +0000
commit45337cf7796974b78d6fffad3b0452dd52d3f48c (patch)
tree1581f01da4b614f5ef85c8755f30d258fe059eb8 /llvm/lib
parent664c925a5712d5977b244868c652e158b600af04 (diff)
downloadbcm5719-llvm-45337cf7796974b78d6fffad3b0452dd52d3f48c.tar.gz
bcm5719-llvm-45337cf7796974b78d6fffad3b0452dd52d3f48c.zip
Try again to appease the FreeBSD bot.
The actual logic was wrong, not just the type conversion. This should get it correct. llvm-svn: 296899
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Support/Unix/Threading.inc9
1 files changed, 2 insertions, 7 deletions
diff --git a/llvm/lib/Support/Unix/Threading.inc b/llvm/lib/Support/Unix/Threading.inc
index e1a37cc47e0..06f4a2da6e7 100644
--- a/llvm/lib/Support/Unix/Threading.inc
+++ b/llvm/lib/Support/Unix/Threading.inc
@@ -126,13 +126,8 @@ void llvm::get_thread_name(SmallVectorImpl<char> &Name) {
Name.clear();
#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
-#if defined(__FreeBSD_kernel__)
- auto pid = ::pthread_self();
-#else
- auto pid = ::getpid();
-#endif
-
- int tid = ::pthread_getthreadid_np();
+ int pid = ::getpid();
+ uint64_t tid = get_threadid();
struct kinfo_proc *kp = nullptr, *nkp;
size_t len = 0;
OpenPOWER on IntegriCloud