diff options
author | Mehdi Amini <joker.eph@gmail.com> | 2024-03-18 14:50:50 -0700 |
---|---|---|
committer | Mehdi Amini <joker.eph@gmail.com> | 2024-03-18 14:52:06 -0700 |
commit | e0b19e957e0ef9b4d88e09c44d6499d931328ecc (patch) | |
tree | efd47dd81ddc12d588171fbdfd65e1cafa176cdb | |
parent | 228757f6c3cd9271eb25b8869445aab5216fe0b6 (diff) | |
download | llvm-e0b19e957e0ef9b4d88e09c44d6499d931328ecc.zip llvm-e0b19e957e0ef9b4d88e09c44d6499d931328ecc.tar.gz llvm-e0b19e957e0ef9b4d88e09c44d6499d931328ecc.tar.bz2 |
[MLIR] Remove unused implicit capture in the lambda (NFC)
This lambda does not capture anything, the `&` is just misleading.
-rw-r--r-- | mlir/lib/Interfaces/ViewLikeInterface.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mlir/lib/Interfaces/ViewLikeInterface.cpp b/mlir/lib/Interfaces/ViewLikeInterface.cpp index 7c59050..6d1ff03 100644 --- a/mlir/lib/Interfaces/ViewLikeInterface.cpp +++ b/mlir/lib/Interfaces/ViewLikeInterface.cpp @@ -27,7 +27,7 @@ LogicalResult mlir::verifyListOfOperandsOrIntegers(Operation *op, return op->emitError("expected ") << numElements << " " << name << " values, got " << staticVals.size(); unsigned expectedNumDynamicEntries = - llvm::count_if(staticVals, [&](int64_t staticVal) { + llvm::count_if(staticVals, [](int64_t staticVal) { return ShapedType::isDynamic(staticVal); }); if (values.size() != expectedNumDynamicEntries) |