aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Analysis/ValueTracking.cpp
diff options
context:
space:
mode:
authorKrzysztof Parzyszek <kparzysz@quicinc.com>2022-12-01 21:50:39 -0600
committerKrzysztof Parzyszek <kparzysz@quicinc.com>2022-12-02 08:15:45 -0600
commit26424c96c03ee4098d7f129de9234a6f177e49ac (patch)
treeea1667be4c04e72f138317556dc4b7ba9f7f5ff1 /llvm/lib/Analysis/ValueTracking.cpp
parent71f3cac7895ad516ec25438f803ed3c9916c215a (diff)
downloadllvm-26424c96c03ee4098d7f129de9234a6f177e49ac.zip
llvm-26424c96c03ee4098d7f129de9234a6f177e49ac.tar.gz
llvm-26424c96c03ee4098d7f129de9234a6f177e49ac.tar.bz2
Attributes: convert Optional to std::optional
Diffstat (limited to 'llvm/lib/Analysis/ValueTracking.cpp')
-rw-r--r--llvm/lib/Analysis/ValueTracking.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/ValueTracking.cpp b/llvm/lib/Analysis/ValueTracking.cpp
index 28463bb..f29b0f8 100644
--- a/llvm/lib/Analysis/ValueTracking.cpp
+++ b/llvm/lib/Analysis/ValueTracking.cpp
@@ -1747,7 +1747,7 @@ static void computeKnownBitsFromOperator(const Operator *I,
break;
auto Attr = II->getFunction()->getFnAttribute(Attribute::VScaleRange);
- Optional<unsigned> VScaleMax = Attr.getVScaleRangeMax();
+ std::optional<unsigned> VScaleMax = Attr.getVScaleRangeMax();
if (!VScaleMax)
break;