aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Commands/CommandObjectFrame.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/CommandObjectFrame.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/CommandObjectFrame.cpp')
-rw-r--r--lldb/source/Commands/CommandObjectFrame.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Commands/CommandObjectFrame.cpp b/lldb/source/Commands/CommandObjectFrame.cpp
index 2a1cef7..0e6ddfa 100644
--- a/lldb/source/Commands/CommandObjectFrame.cpp
+++ b/lldb/source/Commands/CommandObjectFrame.cpp
@@ -348,7 +348,7 @@ protected:
"too many arguments; expected frame-index, saw '%s'.\n",
command[0].c_str());
m_options.GenerateOptionUsage(
- result.GetErrorStream(), this,
+ result.GetErrorStream(), *this,
GetCommandInterpreter().GetDebugger().GetTerminalWidth());
return false;
}