diff options
author | Fangrui Song <i@maskray.me> | 2022-12-05 00:09:22 +0000 |
---|---|---|
committer | Fangrui Song <i@maskray.me> | 2022-12-05 00:09:22 +0000 |
commit | 89fab98e884f05076bbd420d95b5de3596f5452c (patch) | |
tree | 234f5a4340cc34680ffad9872f48dbdb8132ac96 /llvm/lib/DebugInfo/PDB/Native/PDBFileBuilder.cpp | |
parent | 35b4fbb559d909a7edf64412c665e99748398ac4 (diff) | |
download | llvm-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.cpp | 2 |
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); } |