aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Commands/CommandObjectTarget.cpp
diff options
context:
space:
mode:
authorDavid Spickett <david.spickett@linaro.org>2022-05-09 10:50:03 +0000
committerDavid Spickett <david.spickett@linaro.org>2022-05-16 10:46:56 +0000
commite473e79cd194d7a74158ff7e8b97076a7f71c511 (patch)
treeb8077d837e851cf6e3ad36a39ef7247ff499492b /lldb/source/Commands/CommandObjectTarget.cpp
parentaab5bd180a42f7501a91bcaa5b4906ba7e67ce0e (diff)
downloadllvm-e473e79cd194d7a74158ff7e8b97076a7f71c511.zip
llvm-e473e79cd194d7a74158ff7e8b97076a7f71c511.tar.gz
llvm-e473e79cd194d7a74158ff7e8b97076a7f71c511.tar.bz2
[lldb][NFC] Make cmd a reference in GenerateOptionUsage
Nowhere in lldb do we call this with a null pointer. If we did, the first line of the function would fault anyway. Reviewed By: JDevlieghere Differential Revision: https://reviews.llvm.org/D125218
Diffstat (limited to 'lldb/source/Commands/CommandObjectTarget.cpp')
-rw-r--r--lldb/source/Commands/CommandObjectTarget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Commands/CommandObjectTarget.cpp b/lldb/source/Commands/CommandObjectTarget.cpp
index c3376d0..f42588b 100644
--- a/lldb/source/Commands/CommandObjectTarget.cpp
+++ b/lldb/source/Commands/CommandObjectTarget.cpp
@@ -3815,7 +3815,7 @@ public:
default:
m_options.GenerateOptionUsage(
- result.GetErrorStream(), this,
+ result.GetErrorStream(), *this,
GetCommandInterpreter().GetDebugger().GetTerminalWidth());
syntax_error = true;
break;