diff options
author | Kazu Hirata <kazu@google.com> | 2023-04-16 00:40:05 -0700 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2023-04-16 00:40:05 -0700 |
commit | 1ca496bd611591193432aee2d913a4db3618db45 (patch) | |
tree | b932f9fdb8dd104dd40747a097a54ea4437a48ba /mlir/lib/Dialect/SCF | |
parent | 9a678fcaf603c18a6d963ce595412cacf8075d6c (diff) | |
download | llvm-1ca496bd611591193432aee2d913a4db3618db45.tar.gz |
Remove redundant initialization of std::optional (NFC)
Diffstat (limited to 'mlir/lib/Dialect/SCF')
-rw-r--r-- | mlir/lib/Dialect/SCF/IR/ValueBoundsOpInterfaceImpl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mlir/lib/Dialect/SCF/IR/ValueBoundsOpInterfaceImpl.cpp b/mlir/lib/Dialect/SCF/IR/ValueBoundsOpInterfaceImpl.cpp index 668629ac7451..cc6541e02f9c 100644 --- a/mlir/lib/Dialect/SCF/IR/ValueBoundsOpInterfaceImpl.cpp +++ b/mlir/lib/Dialect/SCF/IR/ValueBoundsOpInterfaceImpl.cpp @@ -77,7 +77,7 @@ struct ForOpInterface // Check if computed bound equals the corresponding iter_arg. Value singleValue = nullptr; - std::optional<int64_t> singleDim = std::nullopt; + std::optional<int64_t> singleDim; if (auto dimExpr = bound.getResult(0).dyn_cast<AffineDimExpr>()) { int64_t idx = dimExpr.getPosition(); singleValue = boundOperands[idx].first; |