diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2023-11-18 21:03:22 +0100 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2023-11-18 21:03:22 +0100 |
commit | d9c5e8a2303ff10d211cf1abf722dcde8d6ae468 (patch) | |
tree | 850022bc2d59f48455557aefdcc156e98880c322 | |
parent | 0154e53bf307aa501a6d9d6a1bafa6a6fcb2a7ad (diff) |
[mlir][affine] Remove unused captures
-rw-r--r-- | mlir/lib/IR/AffineMap.cpp | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/mlir/lib/IR/AffineMap.cpp b/mlir/lib/IR/AffineMap.cpp index e0293812277a..3b3391882d04 100644 --- a/mlir/lib/IR/AffineMap.cpp +++ b/mlir/lib/IR/AffineMap.cpp @@ -8,7 +8,6 @@ #include "mlir/IR/AffineMap.h" #include "AffineMapDetail.h" -#include "mlir/Dialect/UB/IR/UBOps.h" #include "mlir/IR/AffineExpr.h" #include "mlir/IR/Builders.h" #include "mlir/IR/BuiltinAttributes.h" @@ -60,8 +59,7 @@ private: expr, [](int64_t lhs, int64_t rhs) { return lhs * rhs; }); case AffineExprKind::Mod: return constantFoldBinExpr( - expr, - [expr, this](int64_t lhs, int64_t rhs) -> std::optional<int64_t> { + expr, [this](int64_t lhs, int64_t rhs) -> std::optional<int64_t> { if (rhs < 1) { hasPoison_ = true; return std::nullopt; @@ -70,8 +68,7 @@ private: }); case AffineExprKind::FloorDiv: return constantFoldBinExpr( - expr, - [expr, this](int64_t lhs, int64_t rhs) -> std::optional<int64_t> { + expr, [this](int64_t lhs, int64_t rhs) -> std::optional<int64_t> { if (rhs == 0) { hasPoison_ = true; return std::nullopt; @@ -80,8 +77,7 @@ private: }); case AffineExprKind::CeilDiv: return constantFoldBinExpr( - expr, - [expr, this](int64_t lhs, int64_t rhs) -> std::optional<int64_t> { + expr, [this](int64_t lhs, int64_t rhs) -> std::optional<int64_t> { if (rhs == 0) { hasPoison_ = true; return std::nullopt; |