[Lldb-commits] [PATCH] D62337: [lldb] followup fix for https://reviews.llvm.org/D62305
Konrad Wilhelm Kleine via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Thu May 23 15:36:32 PDT 2019
This revision was automatically updated to reflect the committed changes.
Closed by commit rLLDB361565: [lldb] followup fix for https://reviews.llvm.org/D62305 (authored by kwk, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D62337?vs=201032&id=201082#toc
Repository:
rLLDB LLDB
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D62337/new/
https://reviews.llvm.org/D62337
Files:
source/Host/common/HostNativeThreadBase.cpp
Index: source/Host/common/HostNativeThreadBase.cpp
===================================================================
--- source/Host/common/HostNativeThreadBase.cpp
+++ source/Host/common/HostNativeThreadBase.cpp
@@ -18,10 +18,10 @@
using namespace lldb_private;
HostNativeThreadBase::HostNativeThreadBase()
- : m_thread(LLDB_INVALID_HOST_THREAD), m_result(0) {}
+ : m_thread(LLDB_INVALID_HOST_THREAD), m_result({}) {}
HostNativeThreadBase::HostNativeThreadBase(thread_t thread)
- : m_thread(thread), m_result(0) {}
+ : m_thread(thread), m_result({}) {}
lldb::thread_t HostNativeThreadBase::GetSystemHandle() const {
return m_thread;
@@ -37,7 +37,7 @@
void HostNativeThreadBase::Reset() {
m_thread = LLDB_INVALID_HOST_THREAD;
- m_result = 0;
+ m_result = {};
}
bool HostNativeThreadBase::EqualsThread(lldb::thread_t thread) const {
@@ -47,7 +47,7 @@
lldb::thread_t HostNativeThreadBase::Release() {
lldb::thread_t result = m_thread;
m_thread = LLDB_INVALID_HOST_THREAD;
- m_result = 0;
+ m_result = {};
return result;
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D62337.201082.patch
Type: text/x-patch
Size: 1074 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20190523/b84565ff/attachment.bin>
More information about the lldb-commits
mailing list