aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Commands/CommandObjectWatchpoint.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2022-06-19 09:12:01 -0700
committerKazu Hirata <kazu@google.com>2022-06-19 09:12:01 -0700
commitaa88161b378ecb49388eefc28abe2926a229bcfc (patch)
tree62b3139d6f697fdfbfeb913c8bc54c01fd86872d /lldb/source/Commands/CommandObjectWatchpoint.cpp
parent0399473de886595d8ce3346f2cc99c94267496e5 (diff)
downloadllvm-aa88161b378ecb49388eefc28abe2926a229bcfc.zip
llvm-aa88161b378ecb49388eefc28abe2926a229bcfc.tar.gz
llvm-aa88161b378ecb49388eefc28abe2926a229bcfc.tar.bz2
[lldb] Use value_or instead of getValueOr (NFC)
Diffstat (limited to 'lldb/source/Commands/CommandObjectWatchpoint.cpp')
-rw-r--r--lldb/source/Commands/CommandObjectWatchpoint.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Commands/CommandObjectWatchpoint.cpp b/lldb/source/Commands/CommandObjectWatchpoint.cpp
index faeca87..6805ff7 100644
--- a/lldb/source/Commands/CommandObjectWatchpoint.cpp
+++ b/lldb/source/Commands/CommandObjectWatchpoint.cpp
@@ -929,7 +929,7 @@ protected:
// We're in business.
// Find out the size of this variable.
size = m_option_watchpoint.watch_size == 0
- ? valobj_sp->GetByteSize().getValueOr(0)
+ ? valobj_sp->GetByteSize().value_or(0)
: m_option_watchpoint.watch_size;
}
compiler_type = valobj_sp->GetCompilerType();