Skip to content

Commit c12c0c5

Browse files
committed
[POSIX] Replace assert with llvm_unreachable(). NFCI.
llvm-svn: 318348
1 parent 194d1a6 commit c12c0c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lldb/source/Host/posix/HostThreadPosix.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Status HostThreadPosix::Cancel() {
4343
if (IsJoinable()) {
4444
#ifndef __ANDROID__
4545
#ifndef __FreeBSD__
46-
assert(false && "someone is calling HostThread::Cancel()");
46+
llvm_unreachable("someone is calling HostThread::Cancel()");
4747
#endif
4848
int err = ::pthread_cancel(m_thread);
4949
error.SetError(err, eErrorTypePOSIX);

0 commit comments

Comments
 (0)