From: Zachary Turner Date: Fri, 3 Mar 2017 17:56:14 +0000 (+0000) Subject: Try to appease the FreeBSD bots. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cda7ea0056f11df2eef2ab3bae37c5c8cb5b6f46;p=llvm Try to appease the FreeBSD bots. pthread_self() returns a pthread_t, but we were setting it to an int. It seems the cast to int when calling sysctl is still the correct thing to do, though. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@296892 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Support/Unix/Threading.inc b/lib/Support/Unix/Threading.inc index 232b1db6cdc..e1a37cc47e0 100644 --- a/lib/Support/Unix/Threading.inc +++ b/lib/Support/Unix/Threading.inc @@ -127,9 +127,9 @@ void llvm::get_thread_name(SmallVectorImpl &Name) { #if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) #if defined(__FreeBSD_kernel__) - int pid = ::pthread_self(); + auto pid = ::pthread_self(); #else - int pid = ::getpid(); + auto pid = ::getpid(); #endif int tid = ::pthread_getthreadid_np();