aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Interpreter/CommandInterpreter.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2022-06-20 20:17:57 -0700
committerKazu Hirata <kazu@google.com>2022-06-20 20:17:57 -0700
commit0916d96d12fda355933a8f66ed2a1ccc855cab9c (patch)
treeb947652ee49c65ae7b4fd30376804749b4de7f29 /lldb/source/Interpreter/CommandInterpreter.cpp
parent064a08cd955019da9130f1109bfa534e79b8ec7c (diff)
downloadllvm-0916d96d12fda355933a8f66ed2a1ccc855cab9c.zip
llvm-0916d96d12fda355933a8f66ed2a1ccc855cab9c.tar.gz
llvm-0916d96d12fda355933a8f66ed2a1ccc855cab9c.tar.bz2
Don't use Optional::hasValue (NFC)
Diffstat (limited to 'lldb/source/Interpreter/CommandInterpreter.cpp')
-rw-r--r--lldb/source/Interpreter/CommandInterpreter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Interpreter/CommandInterpreter.cpp b/lldb/source/Interpreter/CommandInterpreter.cpp
index e3d2aa8..6ef209b 100644
--- a/lldb/source/Interpreter/CommandInterpreter.cpp
+++ b/lldb/source/Interpreter/CommandInterpreter.cpp
@@ -212,7 +212,7 @@ bool CommandInterpreter::SetQuitExitCode(int exit_code) {
}
int CommandInterpreter::GetQuitExitCode(bool &exited) const {
- exited = m_quit_exit_code.hasValue();
+ exited = m_quit_exit_code.has_value();
if (exited)
return *m_quit_exit_code;
return 0;