[Lldb-commits] [lldb] r318348 - [POSIX] Replace assert with llvm_unreachable(). NFCI.

Davide Italiano via lldb-commits lldb-commits at lists.llvm.org
Wed Nov 15 15:39:41 PST 2017


Author: davide
Date: Wed Nov 15 15:39:41 2017
New Revision: 318348

URL: http://llvm.org/viewvc/llvm-project?rev=318348&view=rev
Log:
[POSIX] Replace assert with llvm_unreachable(). NFCI.

Modified:
    lldb/trunk/source/Host/posix/HostThreadPosix.cpp

Modified: lldb/trunk/source/Host/posix/HostThreadPosix.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Host/posix/HostThreadPosix.cpp?rev=318348&r1=318347&r2=318348&view=diff
==============================================================================
--- lldb/trunk/source/Host/posix/HostThreadPosix.cpp (original)
+++ lldb/trunk/source/Host/posix/HostThreadPosix.cpp Wed Nov 15 15:39:41 2017
@@ -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);




More information about the lldb-commits mailing list