summaryrefslogtreecommitdiffstats
path: root/lldb/tools/debugserver/source/MacOSX/MachThread.cpp
diff options
context:
space:
mode:
authorRaphael Isemann <teemperor@gmail.com>2020-01-07 12:13:03 +0100
committerRaphael Isemann <teemperor@gmail.com>2020-01-07 13:03:56 +0100
commit65fdb34219f33b2871a532a38814ac4ebea10abc (patch)
tree5ddc3e81290641e13302734ec37030f3013ca77d /lldb/tools/debugserver/source/MacOSX/MachThread.cpp
parent14cd4a5b32478f76b9fa58825b7c92ba0dd5bc2b (diff)
downloadbcm5719-llvm-65fdb34219f33b2871a532a38814ac4ebea10abc.tar.gz
bcm5719-llvm-65fdb34219f33b2871a532a38814ac4ebea10abc.zip
[lldb][NFC] Use static_cast instead of reinterpret_cast where possible
Summary: There are a few places in LLDB where we do a `reinterpret_cast` for conversions that we could also do with `static_cast`. This patch moves all this code to `static_cast`. Reviewers: shafik, JDevlieghere, labath Reviewed By: labath Subscribers: arphaman, usaxena95, lldb-commits Tags: #lldb Differential Revision: https://reviews.llvm.org/D72161
Diffstat (limited to 'lldb/tools/debugserver/source/MacOSX/MachThread.cpp')
-rw-r--r--lldb/tools/debugserver/source/MacOSX/MachThread.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/tools/debugserver/source/MacOSX/MachThread.cpp b/lldb/tools/debugserver/source/MacOSX/MachThread.cpp
index b51ea694922..80d6042caa5 100644
--- a/lldb/tools/debugserver/source/MacOSX/MachThread.cpp
+++ b/lldb/tools/debugserver/source/MacOSX/MachThread.cpp
@@ -49,7 +49,7 @@ MachThread::MachThread(MachProcess *process, bool is_64_bit,
DNBLogThreadedIf(LOG_THREAD | LOG_VERBOSE,
"MachThread::MachThread ( process = %p, tid = 0x%8.8" PRIx64
", seq_id = %u )",
- reinterpret_cast<void *>(&m_process), m_unique_id, m_seq_id);
+ static_cast<void *>(&m_process), m_unique_id, m_seq_id);
}
MachThread::~MachThread() {
OpenPOWER on IntegriCloud