Adopt the intrusive pointers in:
lldb_private::Breakpoint
lldb_private::BreakpointLocations
lldb_private::BreakpointSite
lldb_private::Debugger
lldb_private::StackFrame
lldb_private::Thread
lldb_private::Target
git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@139985 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Target/Thread.cpp b/source/Target/Thread.cpp
index babb2dd..7c29da2 100644
--- a/source/Target/Thread.cpp
+++ b/source/Target/Thread.cpp
@@ -970,7 +970,9 @@
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);
}