projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
194d1a6
)
[POSIX] Replace assert with llvm_unreachable(). NFCI.
author
Davide Italiano
<davide@freebsd.org>
Wed, 15 Nov 2017 23:39:41 +0000
(23:39 +0000)
committer
Davide Italiano
<davide@freebsd.org>
Wed, 15 Nov 2017 23:39:41 +0000
(23:39 +0000)
llvm-svn: 318348
lldb/source/Host/posix/HostThreadPosix.cpp
patch
|
blob
|
history
diff --git
a/lldb/source/Host/posix/HostThreadPosix.cpp
b/lldb/source/Host/posix/HostThreadPosix.cpp
index
0f4434d
..
71abb76
100644
(file)
--- 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);