diff options
Diffstat (limited to 'lldb/source/Target/Thread.cpp')
-rw-r--r-- | lldb/source/Target/Thread.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lldb/source/Target/Thread.cpp b/lldb/source/Target/Thread.cpp index babb2dd6848..7c29da20481 100644 --- a/lldb/source/Target/Thread.cpp +++ b/lldb/source/Target/Thread.cpp @@ -970,7 +970,9 @@ Thread::DumpUsingSettingsFormat (Stream &strm, uint32_t frame_idx) lldb::ThreadSP Thread::GetSP () { - return m_process.GetThreadList().GetThreadSPForThreadPtr(this); + // This object contains an instrusive ref count base class so we can + // easily make a shared pointer to this object + return ThreadSP(this); } |