diff options
author | Kazu Hirata <kazu@google.com> | 2023-01-13 21:05:06 -0800 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2023-01-13 21:05:06 -0800 |
commit | a1fe1f5f77d48b03b76884a9b9b91a6795193ac1 (patch) | |
tree | dff85df669b8e463a956beccb9dfe67611426b75 /mlir/lib/Bindings/Python/IRAttributes.cpp | |
parent | a3e975d42efa2ec1349c1a3ce203d78bbd7ee10d (diff) | |
download | llvm-a1fe1f5f77d48b03b76884a9b9b91a6795193ac1.zip llvm-a1fe1f5f77d48b03b76884a9b9b91a6795193ac1.tar.gz llvm-a1fe1f5f77d48b03b76884a9b9b91a6795193ac1.tar.bz2 |
[mlir] Add #include <optional> (NFC)
This patch adds #include <optional> to those files containing
llvm::Optional<...> or Optional<...>.
I'll post a separate patch to actually replace llvm::Optional with
std::optional.
This is part of an effort to migrate from llvm::Optional to
std::optional:
https://discourse.llvm.org/t/deprecating-llvm-optional-x-hasvalue-getvalue-getvalueor/63716
Diffstat (limited to 'mlir/lib/Bindings/Python/IRAttributes.cpp')
-rw-r--r-- | mlir/lib/Bindings/Python/IRAttributes.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mlir/lib/Bindings/Python/IRAttributes.cpp b/mlir/lib/Bindings/Python/IRAttributes.cpp index 0c8c9b8..c598aee 100644 --- a/mlir/lib/Bindings/Python/IRAttributes.cpp +++ b/mlir/lib/Bindings/Python/IRAttributes.cpp @@ -7,6 +7,7 @@ //===----------------------------------------------------------------------===// #include <utility> +#include <optional> #include "IRModule.h" |