From c12c0c5467cb2d0663111ede7307033bab5b4078 Mon Sep 17 00:00:00 2001 From: Davide Italiano Date: Wed, 15 Nov 2017 23:39:41 +0000 Subject: [PATCH] [POSIX] Replace assert with llvm_unreachable(). NFCI. llvm-svn: 318348 --- lldb/source/Host/posix/HostThreadPosix.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lldb/source/Host/posix/HostThreadPosix.cpp b/lldb/source/Host/posix/HostThreadPosix.cpp index 0f4434d..71abb76 100644 --- a/lldb/source/Host/posix/HostThreadPosix.cpp +++ b/lldb/source/Host/posix/HostThreadPosix.cpp @@ -43,7 +43,7 @@ Status HostThreadPosix::Cancel() { if (IsJoinable()) { #ifndef __ANDROID__ #ifndef __FreeBSD__ - assert(false && "someone is calling HostThread::Cancel()"); + llvm_unreachable("someone is calling HostThread::Cancel()"); #endif int err = ::pthread_cancel(m_thread); error.SetError(err, eErrorTypePOSIX); -- 2.7.4