aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Commands/CommandObjectFrame.cpp
diff options
context:
space:
mode:
authorFangrui Song <i@maskray.me>2022-12-17 20:37:13 +0000
committerFangrui Song <i@maskray.me>2022-12-17 20:37:13 +0000
commitf43886e7ba5abf9ee8c4d3f0ffbd18eee724466f (patch)
tree03302e1e508c3ecff5c7ace199869b0cc255a315 /lldb/source/Commands/CommandObjectFrame.cpp
parentb6ef76a1ec541f8f748b2b2152a81ff81036b5f4 (diff)
downloadllvm-f43886e7ba5abf9ee8c4d3f0ffbd18eee724466f.zip
llvm-f43886e7ba5abf9ee8c4d3f0ffbd18eee724466f.tar.gz
llvm-f43886e7ba5abf9ee8c4d3f0ffbd18eee724466f.tar.bz2
[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.
Diffstat (limited to 'lldb/source/Commands/CommandObjectFrame.cpp')
-rw-r--r--lldb/source/Commands/CommandObjectFrame.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Commands/CommandObjectFrame.cpp b/lldb/source/Commands/CommandObjectFrame.cpp
index 64bd2c3..a09fe64 100644
--- a/lldb/source/Commands/CommandObjectFrame.cpp
+++ b/lldb/source/Commands/CommandObjectFrame.cpp
@@ -144,10 +144,10 @@ protected:
"`frame diagnose --address` is incompatible with other arguments.");
return false;
}
- valobj_sp = frame_sp->GuessValueForAddress(m_options.address.value());
+ valobj_sp = frame_sp->GuessValueForAddress(*m_options.address);
} else if (m_options.reg) {
valobj_sp = frame_sp->GuessValueForRegisterAndOffset(
- m_options.reg.value(), m_options.offset.value_or(0));
+ *m_options.reg, m_options.offset.value_or(0));
} else {
StopInfoSP stop_info_sp = thread->GetStopInfo();
if (!stop_info_sp) {