mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
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
This commit is contained in:
parent
9ecf4261b1
commit
dd6a386236
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user