aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/DebugInfo/PDB/Native/PDBFileBuilder.cpp
diff options
context:
space:
mode:
authorFangrui Song <i@maskray.me>2022-12-05 00:09:22 +0000
committerFangrui Song <i@maskray.me>2022-12-05 00:09:22 +0000
commit89fab98e884f05076bbd420d95b5de3596f5452c (patch)
tree234f5a4340cc34680ffad9872f48dbdb8132ac96 /llvm/lib/DebugInfo/PDB/Native/PDBFileBuilder.cpp
parent35b4fbb559d909a7edf64412c665e99748398ac4 (diff)
downloadllvm-89fab98e884f05076bbd420d95b5de3596f5452c.zip
llvm-89fab98e884f05076bbd420d95b5de3596f5452c.tar.gz
llvm-89fab98e884f05076bbd420d95b5de3596f5452c.tar.bz2
[DebugInfo] llvm::Optional => std::optional
https://discourse.llvm.org/t/deprecating-llvm-optional-x-hasvalue-getvalue-getvalueor/63716
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 641043a..27df769 100644
--- a/llvm/lib/DebugInfo/PDB/Native/PDBFileBuilder.cpp
+++ b/llvm/lib/DebugInfo/PDB/Native/PDBFileBuilder.cpp
@@ -354,7 +354,7 @@ Error PDBFileBuilder::commit(StringRef Filename, codeview::GUID *Guid) {
} else {
H->Age = Info->getAge();
H->Guid = Info->getGuid();
- Optional<uint32_t> Sig = Info->getSignature();
+ std::optional<uint32_t> Sig = Info->getSignature();
H->Signature = Sig ? *Sig : time(nullptr);
}