forked from OSchip/llvm-project
[lldb/CommandInterpreter] Fix typo in CommandInterpreterResult::IsResult
A missing `=` turned a comparison into an assignment.
This commit is contained in:
parent
1165a35a73
commit
232ef38713
|
@ -38,7 +38,7 @@ public:
|
|||
lldb::CommandInterpreterResult GetResult() const { return m_result; }
|
||||
|
||||
bool IsResult(lldb::CommandInterpreterResult result) {
|
||||
return m_result = result;
|
||||
return m_result == result;
|
||||
}
|
||||
|
||||
protected:
|
||||
|
|
|
@ -116,7 +116,7 @@ CommandInterpreter::CommandInterpreter(Debugger &debugger,
|
|||
m_skip_lldbinit_files(false), m_skip_app_init_files(false),
|
||||
m_command_io_handler_sp(), m_comment_char('#'),
|
||||
m_batch_command_mode(false), m_truncation_warning(eNoTruncation),
|
||||
m_command_source_depth(0) {
|
||||
m_command_source_depth(0), m_result() {
|
||||
SetEventName(eBroadcastBitThreadShouldExit, "thread-should-exit");
|
||||
SetEventName(eBroadcastBitResetPrompt, "reset-prompt");
|
||||
SetEventName(eBroadcastBitQuitCommandReceived, "quit");
|
||||
|
|
Loading…
Reference in New Issue