diff options
author | Kazu Hirata <kazu@google.com> | 2022-06-19 09:12:01 -0700 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2022-06-19 09:12:01 -0700 |
commit | aa88161b378ecb49388eefc28abe2926a229bcfc (patch) | |
tree | 62b3139d6f697fdfbfeb913c8bc54c01fd86872d /lldb/source/Commands/CommandObjectFrame.cpp | |
parent | 0399473de886595d8ce3346f2cc99c94267496e5 (diff) | |
download | llvm-aa88161b378ecb49388eefc28abe2926a229bcfc.zip llvm-aa88161b378ecb49388eefc28abe2926a229bcfc.tar.gz llvm-aa88161b378ecb49388eefc28abe2926a229bcfc.tar.bz2 |
[lldb] Use value_or instead of getValueOr (NFC)
Diffstat (limited to 'lldb/source/Commands/CommandObjectFrame.cpp')
-rw-r--r-- | lldb/source/Commands/CommandObjectFrame.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Commands/CommandObjectFrame.cpp b/lldb/source/Commands/CommandObjectFrame.cpp index 0e6ddfa..5ba28d2c 100644 --- a/lldb/source/Commands/CommandObjectFrame.cpp +++ b/lldb/source/Commands/CommandObjectFrame.cpp @@ -146,7 +146,7 @@ protected: valobj_sp = frame_sp->GuessValueForAddress(m_options.address.getValue()); } else if (m_options.reg.hasValue()) { valobj_sp = frame_sp->GuessValueForRegisterAndOffset( - m_options.reg.getValue(), m_options.offset.getValueOr(0)); + m_options.reg.getValue(), m_options.offset.value_or(0)); } else { StopInfoSP stop_info_sp = thread->GetStopInfo(); if (!stop_info_sp) { |