aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Commands/CommandObjectArgs.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/source/Commands/CommandObjectArgs.cpp')
-rw-r--r--lldb/source/Commands/CommandObjectArgs.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lldb/source/Commands/CommandObjectArgs.cpp b/lldb/source/Commands/CommandObjectArgs.cpp
index 01f798f..f9544e3 100644
--- a/lldb/source/Commands/CommandObjectArgs.cpp
+++ b/lldb/source/Commands/CommandObjectArgs.cpp
@@ -148,15 +148,15 @@ CommandObjectArgs::Execute
return false;
}
- Module *thread_module = thread_cur_frame->GetFrameCodeAddress ().GetModulePtr ();
- if (!thread_module)
+ ModuleSP thread_module_sp (thread_cur_frame->GetFrameCodeAddress ().GetModule());
+ if (!thread_module_sp)
{
result.AppendError ("The PC has no associated module.");
result.SetStatus (eReturnStatusFailed);
return false;
}
- ClangASTContext &ast_context = thread_module->GetClangASTContext();
+ ClangASTContext &ast_context = thread_module_sp->GetClangASTContext();
ValueList value_list;