From cda7ea0056f11df2eef2ab3bae37c5c8cb5b6f46 Mon Sep 17 00:00:00 2001 From: Zachary Turner Date: Fri, 3 Mar 2017 17:56:14 +0000 Subject: [PATCH] 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 --- lib/Support/Unix/Threading.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(); -- 2.11.0