[Lldb-commits] [PATCH] D44056: [lldb] Fix "code unreachable" warning in HostThreadPosix::Cancel
Kuba (Brecka) Mracek via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Fri Mar 2 16:41:50 PST 2018
kubamracek created this revision.
kubamracek added reviewers: davide, jasonmolenda, jingham, aprantl.
https://reviews.llvm.org/D44056
Files:
source/Host/posix/HostThreadPosix.cpp
Index: source/Host/posix/HostThreadPosix.cpp
===================================================================
--- source/Host/posix/HostThreadPosix.cpp
+++ source/Host/posix/HostThreadPosix.cpp
@@ -44,9 +44,10 @@
#ifndef __ANDROID__
#ifndef __FreeBSD__
llvm_unreachable("someone is calling HostThread::Cancel()");
-#endif
+#else
int err = ::pthread_cancel(m_thread);
error.SetError(err, eErrorTypePOSIX);
+#endif
#else
error.SetErrorString("HostThreadPosix::Cancel() not supported on Android");
#endif
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D44056.136881.patch
Type: text/x-patch
Size: 529 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20180303/784a2917/attachment.bin>
More information about the lldb-commits
mailing list