aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/Debugify.cpp
diff options
context:
space:
mode:
authorKrzysztof Parzyszek <kparzysz@quicinc.com>2022-12-03 16:01:15 -0600
committerKrzysztof Parzyszek <kparzysz@quicinc.com>2022-12-04 11:52:02 -0600
commit0ca43d44888885d6caf7636db91fe810e822263c (patch)
tree1b8e5ee0f5ae8e0163d551a99fcfccd33aa27456 /llvm/lib/Transforms/Utils/Debugify.cpp
parentfcf4e360ba6b5f005d2c478ca79112be7a61dacb (diff)
downloadllvm-0ca43d44888885d6caf7636db91fe810e822263c.zip
llvm-0ca43d44888885d6caf7636db91fe810e822263c.tar.gz
llvm-0ca43d44888885d6caf7636db91fe810e822263c.tar.bz2
DebugInfoMetadata: convert Optional to std::optional
Diffstat (limited to 'llvm/lib/Transforms/Utils/Debugify.cpp')
-rw-r--r--llvm/lib/Transforms/Utils/Debugify.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Utils/Debugify.cpp b/llvm/lib/Transforms/Utils/Debugify.cpp
index d814c5e..f4d9bce 100644
--- a/llvm/lib/Transforms/Utils/Debugify.cpp
+++ b/llvm/lib/Transforms/Utils/Debugify.cpp
@@ -27,6 +27,7 @@
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/FileSystem.h"
#include "llvm/Support/JSON.h"
+#include <optional>
#define DEBUG_TYPE "debugify"
@@ -680,7 +681,7 @@ bool diagnoseMisSizedDbgValue(Module &M, DbgValueInst *DVI) {
Type *Ty = V->getType();
uint64_t ValueOperandSize = getAllocSizeInBits(M, Ty);
- Optional<uint64_t> DbgVarSize = DVI->getFragmentSizeInBits();
+ std::optional<uint64_t> DbgVarSize = DVI->getFragmentSizeInBits();
if (!ValueOperandSize || !DbgVarSize)
return false;