diff options
author | Krzysztof Parzyszek <kparzysz@quicinc.com> | 2022-12-03 16:01:15 -0600 |
---|---|---|
committer | Krzysztof Parzyszek <kparzysz@quicinc.com> | 2022-12-04 11:52:02 -0600 |
commit | 0ca43d44888885d6caf7636db91fe810e822263c (patch) | |
tree | 1b8e5ee0f5ae8e0163d551a99fcfccd33aa27456 /llvm/lib/Transforms/Utils/Local.cpp | |
parent | fcf4e360ba6b5f005d2c478ca79112be7a61dacb (diff) | |
download | llvm-0ca43d44888885d6caf7636db91fe810e822263c.zip llvm-0ca43d44888885d6caf7636db91fe810e822263c.tar.gz llvm-0ca43d44888885d6caf7636db91fe810e822263c.tar.bz2 |
DebugInfoMetadata: convert Optional to std::optional
Diffstat (limited to 'llvm/lib/Transforms/Utils/Local.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/Local.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Utils/Local.cpp b/llvm/lib/Transforms/Utils/Local.cpp index 8694994..ffdba22 100644 --- a/llvm/lib/Transforms/Utils/Local.cpp +++ b/llvm/lib/Transforms/Utils/Local.cpp @@ -1473,7 +1473,7 @@ static bool PhiHasDebugValue(DILocalVariable *DIVar, static bool valueCoversEntireFragment(Type *ValTy, DbgVariableIntrinsic *DII) { const DataLayout &DL = DII->getModule()->getDataLayout(); TypeSize ValueSize = DL.getTypeAllocSizeInBits(ValTy); - if (Optional<uint64_t> FragmentSize = DII->getFragmentSizeInBits()) { + if (std::optional<uint64_t> FragmentSize = DII->getFragmentSizeInBits()) { assert(!ValueSize.isScalable() && "Fragments don't work on scalable types."); return ValueSize.getFixedSize() >= *FragmentSize; |