From c30189921e45c303d0a5b2ae26573fa7991bdfd4 Mon Sep 17 00:00:00 2001 From: Zachary Turner Date: Mon, 17 Nov 2014 22:42:57 +0000 Subject: 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 --- lldb/source/Plugins/Process/Windows/TargetThreadWindows.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lldb/source/Plugins/Process/Windows/TargetThreadWindows.cpp') 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) { } -- cgit v1.2.3