From f73363f1dd94996356cefbf24388f561891acf0b Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Sat, 28 Jul 2018 11:09:23 +0000 Subject: Vendor import of lldb trunk r338150: https://llvm.org/svn/llvm-project/lldb/trunk@338150 --- source/Host/posix/HostThreadPosix.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'source/Host/posix/HostThreadPosix.cpp') diff --git a/source/Host/posix/HostThreadPosix.cpp b/source/Host/posix/HostThreadPosix.cpp index 71abb76dc600..13de42f763ec 100644 --- a/source/Host/posix/HostThreadPosix.cpp +++ b/source/Host/posix/HostThreadPosix.cpp @@ -41,14 +41,11 @@ Status HostThreadPosix::Join(lldb::thread_result_t *result) { Status HostThreadPosix::Cancel() { Status error; if (IsJoinable()) { -#ifndef __ANDROID__ #ifndef __FreeBSD__ llvm_unreachable("someone is calling HostThread::Cancel()"); -#endif +#else int err = ::pthread_cancel(m_thread); error.SetError(err, eErrorTypePOSIX); -#else - error.SetErrorString("HostThreadPosix::Cancel() not supported on Android"); #endif } return error; -- cgit v1.3