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/Core/DataFileCache.cpp | |
| parent | b8df4093e4d82c67a419911a46b63482043643e5 (diff) | |
Don't use Optional::hasValue (NFC)
Diffstat (limited to 'lldb/source/Core/DataFileCache.cpp')
| -rw-r--r-- | lldb/source/Core/DataFileCache.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lldb/source/Core/DataFileCache.cpp b/lldb/source/Core/DataFileCache.cpp index 5f8568fdb54f..b38adfda169a 100644 --- a/lldb/source/Core/DataFileCache.cpp +++ b/lldb/source/Core/DataFileCache.cpp @@ -203,17 +203,17 @@ bool CacheSignature::Encode(DataEncoder &encoder) const { if (!IsValid()) return false; // Invalid signature, return false! - if (m_uuid.hasValue()) { + if (m_uuid) { llvm::ArrayRef<uint8_t> uuid_bytes = m_uuid->GetBytes(); encoder.AppendU8(eSignatureUUID); encoder.AppendU8(uuid_bytes.size()); encoder.AppendData(uuid_bytes); } - if (m_mod_time.hasValue()) { + if (m_mod_time) { encoder.AppendU8(eSignatureModTime); encoder.AppendU32(*m_mod_time); } - if (m_obj_mod_time.hasValue()) { + if (m_obj_mod_time) { encoder.AppendU8(eSignatureObjectModTime); encoder.AppendU32(*m_obj_mod_time); } |
