Skip to content

Commit e0b19e9

Browse files
committed
[MLIR] Remove unused implicit capture in the lambda (NFC)
This lambda does not capture anything, the `&` is just misleading.
1 parent 228757f commit e0b19e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mlir/lib/Interfaces/ViewLikeInterface.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ LogicalResult mlir::verifyListOfOperandsOrIntegers(Operation *op,
2727
return op->emitError("expected ") << numElements << " " << name
2828
<< " values, got " << staticVals.size();
2929
unsigned expectedNumDynamicEntries =
30-
llvm::count_if(staticVals, [&](int64_t staticVal) {
30+
llvm::count_if(staticVals, [](int64_t staticVal) {
3131
return ShapedType::isDynamic(staticVal);
3232
});
3333
if (values.size() != expectedNumDynamicEntries)

0 commit comments

Comments
 (0)