summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/Process/Windows/DebuggerThread.cpp
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2014-11-17 22:42:57 +0000
committerZachary Turner <zturner@google.com>2014-11-17 22:42:57 +0000
commitc30189921e45c303d0a5b2ae26573fa7991bdfd4 (patch)
treeb6e584a78101a931a597431ca0d59830a7d290dc /lldb/source/Plugins/Process/Windows/DebuggerThread.cpp
parent5453933867feb886b3c72160dc5d0882e6417fe9 (diff)
downloadbcm5719-llvm-c30189921e45c303d0a5b2ae26573fa7991bdfd4.tar.gz
bcm5719-llvm-c30189921e45c303d0a5b2ae26573fa7991bdfd4.zip
Change HostThread::GetNativeThread() to return a derived reference.
Previously using HostThread::GetNativeThread() required an ugly cast to most-derived type. This solves the issue by simply returning the derived type directly. llvm-svn: 222185
Diffstat (limited to 'lldb/source/Plugins/Process/Windows/DebuggerThread.cpp')
-rw-r--r--lldb/source/Plugins/Process/Windows/DebuggerThread.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Plugins/Process/Windows/DebuggerThread.cpp b/lldb/source/Plugins/Process/Windows/DebuggerThread.cpp
index 2c3ca6f0bf6..c10fb79984d 100644
--- a/lldb/source/Plugins/Process/Windows/DebuggerThread.cpp
+++ b/lldb/source/Plugins/Process/Windows/DebuggerThread.cpp
@@ -185,7 +185,7 @@ DebuggerThread::HandleCreateProcessEvent(const CREATE_PROCESS_DEBUG_INFO &info,
m_process = HostProcess(info.hProcess);
((HostProcessWindows &)m_process.GetNativeProcess()).SetOwnsHandle(false);
m_main_thread = HostThread(info.hThread);
- ((HostThreadWindows &)m_main_thread.GetNativeThread()).SetOwnsHandle(false);
+ m_main_thread.GetNativeThread().SetOwnsHandle(false);
m_image_file = info.hFile;
lldb::addr_t load_addr = reinterpret_cast<lldb::addr_t>(info.lpBaseOfImage);
OpenPOWER on IntegriCloud