[Mlir-commits] [mlir] e0b19e9 - [MLIR] Remove unused implicit capture in the lambda (NFC)
Mehdi Amini
llvmlistbot at llvm.org
Mon Mar 18 14:52:15 PDT 2024
Author: Mehdi Amini
Date: 2024-03-18T14:52:06-07:00
New Revision: e0b19e957e0ef9b4d88e09c44d6499d931328ecc
URL: https://github.com/llvm/llvm-project/commit/e0b19e957e0ef9b4d88e09c44d6499d931328ecc
DIFF: https://github.com/llvm/llvm-project/commit/e0b19e957e0ef9b4d88e09c44d6499d931328ecc.diff
LOG: [MLIR] Remove unused implicit capture in the lambda (NFC)
This lambda does not capture anything, the `&` is just misleading.
Added:
Modified:
mlir/lib/Interfaces/ViewLikeInterface.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Interfaces/ViewLikeInterface.cpp b/mlir/lib/Interfaces/ViewLikeInterface.cpp
index 7c5905010eb413..6d1ff03756ace9 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)
More information about the Mlir-commits
mailing list