[lldb/CommandInterpreter] Fix typo in CommandInterpreterResult::IsResult

A missing `=` turned a comparison into an assignment.
This commit is contained in:
Jonas Devlieghere 2020-05-01 12:03:56 -07:00
parent 1165a35a73
commit 232ef38713
2 changed files with 2 additions and 2 deletions

View File

@ -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:

View File

@ -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");