diff --git a/lldb/source/Host/posix/HostThreadPosix.cpp b/lldb/source/Host/posix/HostThreadPosix.cpp index 3ac83ac07b1e..f1a6d6f83142 100644 --- a/lldb/source/Host/posix/HostThreadPosix.cpp +++ b/lldb/source/Host/posix/HostThreadPosix.cpp @@ -56,7 +56,9 @@ HostThreadPosix::Cancel() if (IsJoinable()) { #ifndef __ANDROID__ +#ifndef __FreeBSD__ assert(false && "someone is calling HostThread::Cancel()"); +#endif int err = ::pthread_cancel(m_thread); error.SetError(err, eErrorTypePOSIX); #else