From e473e79cd194d7a74158ff7e8b97076a7f71c511 Mon Sep 17 00:00:00 2001 From: David Spickett Date: Mon, 9 May 2022 10:50:03 +0000 Subject: [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 --- lldb/source/Commands/CommandObjectFrame.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lldb/source/Commands/CommandObjectFrame.cpp') diff --git a/lldb/source/Commands/CommandObjectFrame.cpp b/lldb/source/Commands/CommandObjectFrame.cpp index 2a1cef7264ea..0e6ddfa15676 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; } -- cgit v1.2.3