summaryrefslogtreecommitdiffstats
path: root/lldb/source/API/SBSection.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/source/API/SBSection.cpp')
-rw-r--r--lldb/source/API/SBSection.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/API/SBSection.cpp b/lldb/source/API/SBSection.cpp
index ed6dba76e58..dedcc7a2850 100644
--- a/lldb/source/API/SBSection.cpp
+++ b/lldb/source/API/SBSection.cpp
@@ -29,7 +29,7 @@ namespace lldb_private
m_section (section)
{
if (section)
- m_module_sp = section->GetModule();
+ m_module_sp = section->GetModule()->shared_from_this();
}
SectionImpl (const SectionImpl &rhs) :
OpenPOWER on IntegriCloud