[Mlir-commits] [mlir] 239737e - Apply clang-tidy fixes for performance-unnecessary-value-param in SparseTensorDialect.cpp (NFC)
Mehdi Amini
llvmlistbot at llvm.org
Thu Nov 10 15:34:01 PST 2022
Author: Mehdi Amini
Date: 2022-11-10T23:31:16Z
New Revision: 239737eda59707c19dc1310906081b6d2afbc03d
URL: https://github.com/llvm/llvm-project/commit/239737eda59707c19dc1310906081b6d2afbc03d
DIFF: https://github.com/llvm/llvm-project/commit/239737eda59707c19dc1310906081b6d2afbc03d.diff
LOG: Apply clang-tidy fixes for performance-unnecessary-value-param in SparseTensorDialect.cpp (NFC)
Added:
Modified:
mlir/lib/Dialect/SparseTensor/IR/SparseTensorDialect.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Dialect/SparseTensor/IR/SparseTensorDialect.cpp b/mlir/lib/Dialect/SparseTensor/IR/SparseTensorDialect.cpp
index 6a4177737df9f..2f7c0bc304a10 100644
--- a/mlir/lib/Dialect/SparseTensor/IR/SparseTensorDialect.cpp
+++ b/mlir/lib/Dialect/SparseTensor/IR/SparseTensorDialect.cpp
@@ -6,6 +6,8 @@
//
//===----------------------------------------------------------------------===//
+#include <utility>
+
#include "mlir/Dialect/SparseTensor/IR/SparseTensor.h"
#include "mlir/Dialect/Arith/IR/Arith.h"
@@ -559,7 +561,8 @@ LogicalResult InsertOp::verify() {
void PushBackOp::build(OpBuilder &builder, OperationState &result,
Type outBuffer, Value bufferSizes, Value inBuffer,
Value value, APInt idx) {
- build(builder, result, outBuffer, bufferSizes, inBuffer, value, idx, Value());
+ build(builder, result, outBuffer, bufferSizes, inBuffer, value,
+ std::move(idx), Value());
}
LogicalResult PushBackOp::verify() {
More information about the Mlir-commits
mailing list