aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Commands/CommandObjectPlatform.cpp
diff options
context:
space:
mode:
authorPavel Labath <pavel@labath.sk>2021-09-16 11:14:16 +0200
committerPavel Labath <pavel@labath.sk>2021-09-16 11:33:47 +0200
commitbd590a5f895f50ceb7669de1b4a69bbcc8adb38b (patch)
treea773caf3c8dba29574a96b91da04d3b193c8eb50 /lldb/source/Commands/CommandObjectPlatform.cpp
parent85f2ae57f713cec55f26b40efb82c4ee8845c27a (diff)
downloadllvm-bd590a5f895f50ceb7669de1b4a69bbcc8adb38b.zip
llvm-bd590a5f895f50ceb7669de1b4a69bbcc8adb38b.tar.gz
llvm-bd590a5f895f50ceb7669de1b4a69bbcc8adb38b.tar.bz2
[lldb] Make Platform::DebugProcess take a Target reference
instead of a pointer. There are just two callers of this function, and both of them have a valid target pointer, so there's no need for all implementations to concern themselves with whether the pointer is null.
Diffstat (limited to 'lldb/source/Commands/CommandObjectPlatform.cpp')
-rw-r--r--lldb/source/Commands/CommandObjectPlatform.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Commands/CommandObjectPlatform.cpp b/lldb/source/Commands/CommandObjectPlatform.cpp
index 7760eba..c4444d4 100644
--- a/lldb/source/Commands/CommandObjectPlatform.cpp
+++ b/lldb/source/Commands/CommandObjectPlatform.cpp
@@ -1171,7 +1171,7 @@ protected:
target->GetRunArguments(m_options.launch_info.GetArguments());
ProcessSP process_sp(platform_sp->DebugProcess(
- m_options.launch_info, debugger, target, error));
+ m_options.launch_info, debugger, *target, error));
if (process_sp && process_sp->IsAlive()) {
result.SetStatus(eReturnStatusSuccessFinishNoResult);
return true;