The actual logic was wrong, not just the type conversion.
This should get it correct.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@296899
91177308-0d34-0410-b5e6-
96231b3b80d8
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;