diff options
| author | Jonas Devlieghere <jonas@devlieghere.com> | 2019-05-23 18:15:43 +0000 |
|---|---|---|
| committer | Jonas Devlieghere <jonas@devlieghere.com> | 2019-05-23 18:15:43 +0000 |
| commit | a21d5ab369ead9b9517b13aa8de3606bc641bfa5 (patch) | |
| tree | 752dc1b71d011c7e84fec9cf673a3a5e5f69015e /lldb/source/Host/common/HostNativeThreadBase.cpp | |
| parent | 170dfeb2ff06d6eb9157054c9b321a5bb2fc10f7 (diff) | |
| download | bcm5719-llvm-a21d5ab369ead9b9517b13aa8de3606bc641bfa5.tar.gz bcm5719-llvm-a21d5ab369ead9b9517b13aa8de3606bc641bfa5.zip | |
[HostNativeThreadBase] Undo nullptr changes
The thread result type is an unsigned instead of a pointer on windows,
so we shouldn't replace 0 with nullptr here.
llvm-svn: 361528
Diffstat (limited to 'lldb/source/Host/common/HostNativeThreadBase.cpp')
| -rw-r--r-- | lldb/source/Host/common/HostNativeThreadBase.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lldb/source/Host/common/HostNativeThreadBase.cpp b/lldb/source/Host/common/HostNativeThreadBase.cpp index 82f519e14f1..a5f876a7232 100644 --- a/lldb/source/Host/common/HostNativeThreadBase.cpp +++ b/lldb/source/Host/common/HostNativeThreadBase.cpp @@ -18,10 +18,10 @@ using namespace lldb; using namespace lldb_private; HostNativeThreadBase::HostNativeThreadBase() - : m_thread(LLDB_INVALID_HOST_THREAD), m_result(nullptr) {} + : m_thread(LLDB_INVALID_HOST_THREAD), m_result(0) {} HostNativeThreadBase::HostNativeThreadBase(thread_t thread) - : m_thread(thread), m_result(nullptr) {} + : m_thread(thread), m_result(0) {} lldb::thread_t HostNativeThreadBase::GetSystemHandle() const { return m_thread; @@ -37,7 +37,7 @@ bool HostNativeThreadBase::IsJoinable() const { void HostNativeThreadBase::Reset() { m_thread = LLDB_INVALID_HOST_THREAD; - m_result = nullptr; + m_result = 0; } bool HostNativeThreadBase::EqualsThread(lldb::thread_t thread) const { @@ -47,7 +47,7 @@ bool HostNativeThreadBase::EqualsThread(lldb::thread_t thread) const { lldb::thread_t HostNativeThreadBase::Release() { lldb::thread_t result = m_thread; m_thread = LLDB_INVALID_HOST_THREAD; - m_result = nullptr; + m_result = 0; return result; } |

