[Mlir-commits] [mlir] 492f463 - [MLIR] Apply clang-tidy fixes for performance-unnecessary-value-param in TestBuiltinAttributeInterfaces.cpp (NFC)
Mehdi Amini
llvmlistbot at llvm.org
Sat Sep 6 07:32:47 PDT 2025
Author: Mehdi Amini
Date: 2025-09-06T07:31:17-07:00
New Revision: 492f463c0fe15bbed6fedc72bcd5d8d0bfcb7f04
URL: https://github.com/llvm/llvm-project/commit/492f463c0fe15bbed6fedc72bcd5d8d0bfcb7f04
DIFF: https://github.com/llvm/llvm-project/commit/492f463c0fe15bbed6fedc72bcd5d8d0bfcb7f04.diff
LOG: [MLIR] Apply clang-tidy fixes for performance-unnecessary-value-param in TestBuiltinAttributeInterfaces.cpp (NFC)
Added:
Modified:
mlir/test/lib/IR/TestBuiltinAttributeInterfaces.cpp
Removed:
################################################################################
diff --git a/mlir/test/lib/IR/TestBuiltinAttributeInterfaces.cpp b/mlir/test/lib/IR/TestBuiltinAttributeInterfaces.cpp
index 93c4bcfe1424e..f44b78673ec5f 100644
--- a/mlir/test/lib/IR/TestBuiltinAttributeInterfaces.cpp
+++ b/mlir/test/lib/IR/TestBuiltinAttributeInterfaces.cpp
@@ -6,6 +6,8 @@
//
//===----------------------------------------------------------------------===//
+#include <utility>
+
#include "TestAttributes.h"
#include "mlir/IR/BuiltinOps.h"
#include "mlir/Pass/Pass.h"
@@ -62,8 +64,9 @@ struct TestElementsAttrInterface
return;
}
- llvm::interleaveComma(*values, diag,
- [&](T value) { printOneElement(diag, value); });
+ llvm::interleaveComma(*values, diag, [&](T value) {
+ printOneElement(diag, std::move(value));
+ });
}
};
} // namespace
More information about the Mlir-commits
mailing list