diff options
author | Krzysztof Parzyszek <kparzysz@quicinc.com> | 2022-12-01 21:50:39 -0600 |
---|---|---|
committer | Krzysztof Parzyszek <kparzysz@quicinc.com> | 2022-12-02 08:15:45 -0600 |
commit | 26424c96c03ee4098d7f129de9234a6f177e49ac (patch) | |
tree | ea1667be4c04e72f138317556dc4b7ba9f7f5ff1 /llvm/lib/Analysis/MemoryBuiltins.cpp | |
parent | 71f3cac7895ad516ec25438f803ed3c9916c215a (diff) | |
download | llvm-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.cpp | 3 |
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 |