Skip to content

Commit 239737e

Browse files
committed
Apply clang-tidy fixes for performance-unnecessary-value-param in SparseTensorDialect.cpp (NFC)
1 parent 1f48f4d commit 239737e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

mlir/lib/Dialect/SparseTensor/IR/SparseTensorDialect.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
//
77
//===----------------------------------------------------------------------===//
88

9+
#include <utility>
10+
911
#include "mlir/Dialect/SparseTensor/IR/SparseTensor.h"
1012

1113
#include "mlir/Dialect/Arith/IR/Arith.h"
@@ -559,7 +561,8 @@ LogicalResult InsertOp::verify() {
559561
void PushBackOp::build(OpBuilder &builder, OperationState &result,
560562
Type outBuffer, Value bufferSizes, Value inBuffer,
561563
Value value, APInt idx) {
562-
build(builder, result, outBuffer, bufferSizes, inBuffer, value, idx, Value());
564+
build(builder, result, outBuffer, bufferSizes, inBuffer, value,
565+
std::move(idx), Value());
563566
}
564567

565568
LogicalResult PushBackOp::verify() {

0 commit comments

Comments
 (0)