aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Commands/CommandCompletions.cpp
diff options
context:
space:
mode:
authorAlex Langford <alangford@apple.com>2023-06-27 13:48:27 -0700
committerAlex Langford <alangford@apple.com>2023-07-03 11:39:38 -0700
commitb709149b76277e8bea4a3d7977ccb4e818499b7b (patch)
treefe3d56f7ebb7d83f9b09dec09ee5ec1615f73c2d /lldb/source/Commands/CommandCompletions.cpp
parentc9b31dae56f155ed08cc855dffe7eae2ea8cd30d (diff)
downloadllvm-b709149b76277e8bea4a3d7977ccb4e818499b7b.zip
llvm-b709149b76277e8bea4a3d7977ccb4e818499b7b.tar.gz
llvm-b709149b76277e8bea4a3d7977ccb4e818499b7b.tar.bz2
[lldb][NFCI] Target::StopHook::GetDescription should take a Stream ref instead of pointer
We always assume that this is valid anyway, might as well take a reference. Differential Revision: https://reviews.llvm.org/D153917
Diffstat (limited to 'lldb/source/Commands/CommandCompletions.cpp')
-rw-r--r--lldb/source/Commands/CommandCompletions.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Commands/CommandCompletions.cpp b/lldb/source/Commands/CommandCompletions.cpp
index 35237d4..dad63b6 100644
--- a/lldb/source/Commands/CommandCompletions.cpp
+++ b/lldb/source/Commands/CommandCompletions.cpp
@@ -754,7 +754,7 @@ void CommandCompletions::StopHookIDs(CommandInterpreter &interpreter,
// neater.
strm.SetIndentLevel(11);
const Target::StopHookSP stophook_sp = target_sp->GetStopHookAtIndex(idx);
- stophook_sp->GetDescription(&strm, lldb::eDescriptionLevelInitial);
+ stophook_sp->GetDescription(strm, lldb::eDescriptionLevelInitial);
request.TryCompleteCurrentArg(std::to_string(stophook_sp->GetID()),
strm.GetString());
}