aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Analysis/MemoryBuiltins.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/MemoryBuiltins.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/MemoryBuiltins.cpp')
-rw-r--r--llvm/lib/Analysis/MemoryBuiltins.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/MemoryBuiltins.cpp b/llvm/lib/Analysis/MemoryBuiltins.cpp
index 1cba057..9deb966 100644
--- a/llvm/lib/Analysis/MemoryBuiltins.cpp
+++ b/llvm/lib/Analysis/MemoryBuiltins.cpp
@@ -44,6 +44,7 @@
#include <cstdint>
#include <iterator>
#include <numeric>
+#include <optional>
#include <type_traits>
#include <utility>
@@ -251,7 +252,7 @@ static Optional<AllocFnsTy> getAllocationSize(const Value *V,
if (Attr == Attribute())
return None;
- std::pair<unsigned, Optional<unsigned>> Args = Attr.getAllocSizeArgs();
+ std::pair<unsigned, std::optional<unsigned>> Args = Attr.getAllocSizeArgs();
AllocFnsTy Result;
// Because allocsize only tells us how many bytes are allocated, we're not