diff options
Diffstat (limited to 'lldb/source/Core/Module.cpp')
-rw-r--r-- | lldb/source/Core/Module.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lldb/source/Core/Module.cpp b/lldb/source/Core/Module.cpp index 4c997969ea4..2786600b380 100644 --- a/lldb/source/Core/Module.cpp +++ b/lldb/source/Core/Module.cpp @@ -131,7 +131,8 @@ Module::~Module() ModuleSP Module::GetSP () const { - return ModuleList::GetModuleSP (this); + ModuleSP module_sp(const_cast<Module*>(this)); + return module_sp; } const lldb_private::UUID& |