[lldb] llvm::Optional::value() && => operator*/operator->
authorFangrui Song <i@maskray.me>
Sat, 17 Dec 2022 20:37:13 +0000 (20:37 +0000)
committerFangrui Song <i@maskray.me>
Sat, 17 Dec 2022 20:37:13 +0000 (20:37 +0000)
commitf43886e7ba5abf9ee8c4d3f0ffbd18eee724466f
tree03302e1e508c3ecff5c7ace199869b0cc255a315
parentb6ef76a1ec541f8f748b2b2152a81ff81036b5f4
[lldb] llvm::Optional::value() && => operator*/operator->

std::optional::value() has undesired exception checking semantics and is
unavailable in older Xcode (see _LIBCPP_AVAILABILITY_BAD_OPTIONAL_ACCESS). The
call sites block std::optional migration.
lldb/source/Commands/CommandObjectFrame.cpp
lldb/source/Commands/CommandObjectMemory.cpp
lldb/source/Plugins/Instruction/RISCV/EmulateInstructionRISCV.cpp
lldb/source/Plugins/Language/CPlusPlus/CPlusPlusNameParser.cpp
lldb/source/Target/Thread.cpp
lldb/tools/lldb-test/lldb-test.cpp
lldb/unittests/Host/ConnectionFileDescriptorTest.cpp
lldb/unittests/Utility/StringExtractorGDBRemoteTest.cpp