summaryrefslogtreecommitdiffstats
path: root/lldb/source/Host/common/HostNativeThreadBase.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/source/Host/common/HostNativeThreadBase.cpp')
-rw-r--r--lldb/source/Host/common/HostNativeThreadBase.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lldb/source/Host/common/HostNativeThreadBase.cpp b/lldb/source/Host/common/HostNativeThreadBase.cpp
index c1a09e19823..fd39e0d1e2f 100644
--- a/lldb/source/Host/common/HostNativeThreadBase.cpp
+++ b/lldb/source/Host/common/HostNativeThreadBase.cpp
@@ -52,8 +52,7 @@ lldb::thread_result_t
HostNativeThreadBase::ThreadCreateTrampoline(lldb::thread_arg_t arg) {
ThreadLauncher::HostThreadCreateInfo *info =
(ThreadLauncher::HostThreadCreateInfo *)arg;
- ThisThread::SetName(info->thread_name.c_str(),
- HostInfo::GetMaxThreadNameLength());
+ ThisThread::SetName(info->thread_name, HostInfo::GetMaxThreadNameLength());
thread_func_t thread_fptr = info->thread_fptr;
thread_arg_t thread_arg = info->thread_arg;
OpenPOWER on IntegriCloud