projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
664c925
)
Try again to appease the FreeBSD bot.
author
Zachary Turner
<zturner@google.com>
Fri, 3 Mar 2017 18:21:04 +0000
(18:21 +0000)
committer
Zachary Turner
<zturner@google.com>
Fri, 3 Mar 2017 18:21:04 +0000
(18:21 +0000)
The actual logic was wrong, not just the type conversion.
This should get it correct.
llvm-svn: 296899
llvm/lib/Support/Unix/Threading.inc
patch
|
blob
|
history
diff --git
a/llvm/lib/Support/Unix/Threading.inc
b/llvm/lib/Support/Unix/Threading.inc
index
e1a37cc
..
06f4a2d
100644
(file)
--- 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;