diff options
| author | Zachary Turner <zturner@google.com> | 2014-11-17 22:42:57 +0000 |
|---|---|---|
| committer | Zachary Turner <zturner@google.com> | 2014-11-17 22:42:57 +0000 |
| commit | c30189921e45c303d0a5b2ae26573fa7991bdfd4 (patch) | |
| tree | b6e584a78101a931a597431ca0d59830a7d290dc /lldb/source/Plugins/Process/Windows/TargetThreadWindows.cpp | |
| parent | 5453933867feb886b3c72160dc5d0882e6417fe9 (diff) | |
| download | bcm5719-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/TargetThreadWindows.cpp')
| -rw-r--r-- | lldb/source/Plugins/Process/Windows/TargetThreadWindows.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Plugins/Process/Windows/TargetThreadWindows.cpp b/lldb/source/Plugins/Process/Windows/TargetThreadWindows.cpp index 33b5fd1973c..2ca55d73910 100644 --- a/lldb/source/Plugins/Process/Windows/TargetThreadWindows.cpp +++ b/lldb/source/Plugins/Process/Windows/TargetThreadWindows.cpp @@ -17,7 +17,7 @@ using namespace lldb; using namespace lldb_private; TargetThreadWindows::TargetThreadWindows(ProcessWindows &process, const HostThread &thread) - : Thread(process, ((HostThreadWindows &)thread.GetNativeThread()).GetThreadId()) + : Thread(process, thread.GetNativeThread().GetThreadId()) , m_host_thread(thread) { } |

