diff options
author | David Spickett <david.spickett@linaro.org> | 2022-05-09 10:50:03 +0000 |
---|---|---|
committer | David Spickett <david.spickett@linaro.org> | 2022-05-16 10:46:56 +0000 |
commit | e473e79cd194d7a74158ff7e8b97076a7f71c511 (patch) | |
tree | b8077d837e851cf6e3ad36a39ef7247ff499492b /lldb/source/Commands/CommandObjectFrame.cpp | |
parent | aab5bd180a42f7501a91bcaa5b4906ba7e67ce0e (diff) | |
download | llvm-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.cpp | 2 |
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; } |