diff options
author | Fangrui Song <i@maskray.me> | 2022-12-17 20:37:13 +0000 |
---|---|---|
committer | Fangrui Song <i@maskray.me> | 2022-12-17 20:37:13 +0000 |
commit | f43886e7ba5abf9ee8c4d3f0ffbd18eee724466f (patch) | |
tree | 03302e1e508c3ecff5c7ace199869b0cc255a315 /lldb/source/Commands/CommandObjectMemory.cpp | |
parent | b6ef76a1ec541f8f748b2b2152a81ff81036b5f4 (diff) | |
download | llvm-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/CommandObjectMemory.cpp')
-rw-r--r-- | lldb/source/Commands/CommandObjectMemory.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Commands/CommandObjectMemory.cpp b/lldb/source/Commands/CommandObjectMemory.cpp index e42665b..646747e 100644 --- a/lldb/source/Commands/CommandObjectMemory.cpp +++ b/lldb/source/Commands/CommandObjectMemory.cpp @@ -1739,7 +1739,7 @@ protected: const llvm::Optional<std::vector<addr_t>> &dirty_page_list = range_info.GetDirtyPageList(); if (dirty_page_list) { - const size_t page_count = dirty_page_list.value().size(); + const size_t page_count = dirty_page_list->size(); result.AppendMessageWithFormat( "Modified memory (dirty) page list provided, %zu entries.\n", page_count); |