diff options
author | Kazu Hirata <kazu@google.com> | 2022-08-19 21:40:48 -0700 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2022-08-19 21:40:48 -0700 |
commit | c38bc421b1268ca371cdbb54e470d758968ce67a (patch) | |
tree | 062ac950fe8e3912a54b709f8f58c05718f79349 | |
parent | 2b4662551603d59e1d425494cd13452c42e5c366 (diff) | |
download | llvm-c38bc421b1268ca371cdbb54e470d758968ce67a.zip llvm-c38bc421b1268ca371cdbb54e470d758968ce67a.tar.gz llvm-c38bc421b1268ca371cdbb54e470d758968ce67a.tar.bz2 |
[lldb] Use Optional::value instead of Optional::getValue (NFC)
-rw-r--r-- | lldb/source/Host/common/Editline.cpp | 2 | ||||
-rw-r--r-- | lldb/tools/lldb-test/lldb-test.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Host/common/Editline.cpp b/lldb/source/Host/common/Editline.cpp index cee7a36..c46e69d 100644 --- a/lldb/source/Host/common/Editline.cpp +++ b/lldb/source/Host/common/Editline.cpp @@ -1086,7 +1086,7 @@ unsigned char Editline::TypedCharacter(int ch) { m_color_prompts ? m_suggestion_ansi_suffix.c_str() : ""; if (llvm::Optional<std::string> to_add = m_suggestion_callback(line)) { - std::string to_add_color = ansi_prefix + to_add.getValue() + ansi_suffix; + std::string to_add_color = ansi_prefix + to_add.value() + ansi_suffix; fputs(typed.c_str(), m_output_file); fputs(to_add_color.c_str(), m_output_file); size_t new_autosuggestion_size = line.size() + to_add->length(); diff --git a/lldb/tools/lldb-test/lldb-test.cpp b/lldb/tools/lldb-test/lldb-test.cpp index 466e082..b365131 100644 --- a/lldb/tools/lldb-test/lldb-test.cpp +++ b/lldb/tools/lldb-test/lldb-test.cpp @@ -884,7 +884,7 @@ static Mangled::NamePreference opts::symtab::getNamePreference() { int opts::symtab::handleSymtabCommand(Debugger &Dbg) { if (auto error = validate()) { - logAllUnhandledErrors(std::move(error.getValue()), WithColor::error(), ""); + logAllUnhandledErrors(std::move(error.value()), WithColor::error(), ""); return 1; } |