aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Commands/CommandObjectMemory.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2022-06-26 19:29:40 -0700
committerKazu Hirata <kazu@google.com>2022-06-26 19:29:40 -0700
commit96d1b4ddb2cc37b900692215f7598ff5970b0baa (patch)
tree776f5208605bd70de9e55027ecf7543415efa7d6 /lldb/source/Commands/CommandObjectMemory.cpp
parent2d70eff80229be18e5f688b04164f96f52b52714 (diff)
downloadllvm-96d1b4ddb2cc37b900692215f7598ff5970b0baa.zip
llvm-96d1b4ddb2cc37b900692215f7598ff5970b0baa.tar.gz
llvm-96d1b4ddb2cc37b900692215f7598ff5970b0baa.tar.bz2
[lld] Don't use Optional::hasValue (NFC)
This patch replaces x.hasValue() with x where x is contextually convertible to bool.
Diffstat (limited to 'lldb/source/Commands/CommandObjectMemory.cpp')
-rw-r--r--lldb/source/Commands/CommandObjectMemory.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Commands/CommandObjectMemory.cpp b/lldb/source/Commands/CommandObjectMemory.cpp
index 117b5f4..98fa38f 100644
--- a/lldb/source/Commands/CommandObjectMemory.cpp
+++ b/lldb/source/Commands/CommandObjectMemory.cpp
@@ -1737,7 +1737,7 @@ protected:
const llvm::Optional<std::vector<addr_t>> &dirty_page_list =
range_info.GetDirtyPageList();
- if (dirty_page_list.hasValue()) {
+ if (dirty_page_list) {
const size_t page_count = dirty_page_list.getValue().size();
result.AppendMessageWithFormat(
"Modified memory (dirty) page list provided, %zu entries.\n",