aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/DebugInfo/PDB/Native/PDBFileBuilder.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2022-06-20 20:17:57 -0700
committerKazu Hirata <kazu@google.com>2022-06-20 20:17:57 -0700
commit0916d96d12fda355933a8f66ed2a1ccc855cab9c (patch)
treeb947652ee49c65ae7b4fd30376804749b4de7f29 /llvm/lib/DebugInfo/PDB/Native/PDBFileBuilder.cpp
parent064a08cd955019da9130f1109bfa534e79b8ec7c (diff)
downloadllvm-0916d96d12fda355933a8f66ed2a1ccc855cab9c.zip
llvm-0916d96d12fda355933a8f66ed2a1ccc855cab9c.tar.gz
llvm-0916d96d12fda355933a8f66ed2a1ccc855cab9c.tar.bz2
Don't use Optional::hasValue (NFC)
Diffstat (limited to 'llvm/lib/DebugInfo/PDB/Native/PDBFileBuilder.cpp')
-rw-r--r--llvm/lib/DebugInfo/PDB/Native/PDBFileBuilder.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/DebugInfo/PDB/Native/PDBFileBuilder.cpp b/llvm/lib/DebugInfo/PDB/Native/PDBFileBuilder.cpp
index dc07042..641043a 100644
--- a/llvm/lib/DebugInfo/PDB/Native/PDBFileBuilder.cpp
+++ b/llvm/lib/DebugInfo/PDB/Native/PDBFileBuilder.cpp
@@ -355,7 +355,7 @@ Error PDBFileBuilder::commit(StringRef Filename, codeview::GUID *Guid) {
H->Age = Info->getAge();
H->Guid = Info->getGuid();
Optional<uint32_t> Sig = Info->getSignature();
- H->Signature = Sig.hasValue() ? *Sig : time(nullptr);
+ H->Signature = Sig ? *Sig : time(nullptr);
}
return Buffer.commit();