aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Host/common/HostNativeThreadBase.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2022-01-01 11:15:14 -0800
committerKazu Hirata <kazu@google.com>2022-01-01 11:15:14 -0800
commit95f7112be8daa521e607fb3c231012a6d5eafa96 (patch)
tree944651d50a331cfa4c4c475e46496fc0eb202077 /lldb/source/Host/common/HostNativeThreadBase.cpp
parent913457acf07be7f22d71ac41ad1076517d7f45c6 (diff)
downloadllvm-95f7112be8daa521e607fb3c231012a6d5eafa96.tar.gz
llvm-95f7112be8daa521e607fb3c231012a6d5eafa96.tar.bz2
llvm-95f7112be8daa521e607fb3c231012a6d5eafa96.zip
Revert "[lldb] Use nullptr instead of 0 or NULL (NFC)"
This reverts commit 913457acf07be7f22d71ac41ad1076517d7f45c6. It again broke builds on Windows: lldb/source/Host/common/HostNativeThreadBase.cpp(37,14): error: assigning to 'lldb::thread_result_t' (aka 'unsigned int') from incompatible type 'std::nullptr_t'
Diffstat (limited to 'lldb/source/Host/common/HostNativeThreadBase.cpp')
-rw-r--r--lldb/source/Host/common/HostNativeThreadBase.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lldb/source/Host/common/HostNativeThreadBase.cpp b/lldb/source/Host/common/HostNativeThreadBase.cpp
index e7966d9ebaa5..b15160b143ca 100644
--- a/lldb/source/Host/common/HostNativeThreadBase.cpp
+++ b/lldb/source/Host/common/HostNativeThreadBase.cpp
@@ -18,7 +18,7 @@ using namespace lldb;
using namespace lldb_private;
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;
@@ -34,7 +34,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 {
@@ -44,7 +44,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;
}