[Mlir-commits] [mlir] 31f4559 - Apply clang-tidy fixes for performance-unnecessary-value-param in SerializationTest.cpp (NFC)
Mehdi Amini
llvmlistbot at llvm.org
Tue Feb 20 14:15:14 PST 2024
Author: Mehdi Amini
Date: 2024-02-20T14:14:39-08:00
New Revision: 31f45596737f37e16226c039ff6f53406174b9d5
URL: https://github.com/llvm/llvm-project/commit/31f45596737f37e16226c039ff6f53406174b9d5
DIFF: https://github.com/llvm/llvm-project/commit/31f45596737f37e16226c039ff6f53406174b9d5.diff
LOG: Apply clang-tidy fixes for performance-unnecessary-value-param in SerializationTest.cpp (NFC)
Added:
Modified:
mlir/unittests/Dialect/SPIRV/SerializationTest.cpp
Removed:
################################################################################
diff --git a/mlir/unittests/Dialect/SPIRV/SerializationTest.cpp b/mlir/unittests/Dialect/SPIRV/SerializationTest.cpp
index 56a98cc205ab43..3a6bcbd999a57a 100644
--- a/mlir/unittests/Dialect/SPIRV/SerializationTest.cpp
+++ b/mlir/unittests/Dialect/SPIRV/SerializationTest.cpp
@@ -77,7 +77,7 @@ class SerializationTest : public ::testing::Test {
}
// Inserts an Integer or a Vector of Integers constant of value 'val'.
- spirv::ConstantOp AddConstInt(Type type, APInt val) {
+ spirv::ConstantOp AddConstInt(Type type, const APInt &val) {
OpBuilder builder(module->getRegion());
auto loc = UnknownLoc::get(&context);
More information about the Mlir-commits
mailing list