[lld] Don't use Optional::hasValue (NFC)
authorKazu Hirata <kazu@google.com>
Mon, 27 Jun 2022 02:29:40 +0000 (19:29 -0700)
committerKazu Hirata <kazu@google.com>
Mon, 27 Jun 2022 02:29:40 +0000 (19:29 -0700)
commit96d1b4ddb2cc37b900692215f7598ff5970b0baa
tree776f5208605bd70de9e55027ecf7543415efa7d6
parent2d70eff80229be18e5f688b04164f96f52b52714
[lld] Don't use Optional::hasValue (NFC)

This patch replaces x.hasValue() with x where x is contextually
convertible to bool.
15 files changed:
lldb/include/lldb/Target/MemoryRegionInfo.h
lldb/source/API/SBMemoryRegionInfo.cpp
lldb/source/Breakpoint/BreakpointIDList.cpp
lldb/source/Commands/CommandObjectFrame.cpp
lldb/source/Commands/CommandObjectMemory.cpp
lldb/source/Core/DataFileCache.cpp
lldb/source/Core/DumpDataExtractor.cpp
lldb/source/Core/ValueObjectChild.cpp
lldb/source/Plugins/Disassembler/LLVMC/DisassemblerLLVMC.cpp
lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp
lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp
lldb/source/Plugins/SymbolFile/Breakpad/SymbolFileBreakpad.cpp
lldb/source/Target/UnixSignals.cpp
lldb/source/Utility/SelectHelper.cpp
lldb/unittests/tools/lldb-server/tests/TestClient.cpp