diff options
| author | Kazu Hirata <kazu@google.com> | 2022-06-25 11:55:57 -0700 |
|---|---|---|
| committer | Kazu Hirata <kazu@google.com> | 2022-06-25 11:55:57 -0700 |
| commit | aa8feeefd3ac6c78ee8f67bf033976fc7d68bc6d (patch) | |
| tree | d207b35cfb445636f41204bcfe51f6ca3a94a3ba /lldb/source/Commands/CommandObjectMemory.cpp | |
| parent | b8df4093e4d82c67a419911a46b63482043643e5 (diff) | |
Don't use Optional::hasValue (NFC)
Diffstat (limited to 'lldb/source/Commands/CommandObjectMemory.cpp')
| -rw-r--r-- | lldb/source/Commands/CommandObjectMemory.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Commands/CommandObjectMemory.cpp b/lldb/source/Commands/CommandObjectMemory.cpp index 117b5f468d4d..be887f17e589 100644 --- a/lldb/source/Commands/CommandObjectMemory.cpp +++ b/lldb/source/Commands/CommandObjectMemory.cpp @@ -1737,8 +1737,8 @@ protected: const llvm::Optional<std::vector<addr_t>> &dirty_page_list = range_info.GetDirtyPageList(); - if (dirty_page_list.hasValue()) { - const size_t page_count = dirty_page_list.getValue().size(); + if (dirty_page_list) { + const size_t page_count = dirty_page_list->size(); result.AppendMessageWithFormat( "Modified memory (dirty) page list provided, %zu entries.\n", page_count); |
