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/IR/IntrinsicInst.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/IR/IntrinsicInst.cpp')
-rw-r--r-- | llvm/lib/IR/IntrinsicInst.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/IR/IntrinsicInst.cpp b/llvm/lib/IR/IntrinsicInst.cpp index 1b1e671..bd04384 100644 --- a/llvm/lib/IR/IntrinsicInst.cpp +++ b/llvm/lib/IR/IntrinsicInst.cpp @@ -185,7 +185,7 @@ void DbgVariableIntrinsic::addVariableLocationOps(ArrayRef<Value *> NewValues, 0, MetadataAsValue::get(getContext(), DIArgList::get(getContext(), MDs))); } -Optional<uint64_t> DbgVariableIntrinsic::getFragmentSizeInBits() const { +std::optional<uint64_t> DbgVariableIntrinsic::getFragmentSizeInBits() const { if (auto Fragment = getExpression()->getFragmentInfo()) return Fragment->SizeInBits; return getVariable()->getSizeInBits(); |