Skip to content

Commit 492f463

Browse files
committed
[MLIR] Apply clang-tidy fixes for performance-unnecessary-value-param in TestBuiltinAttributeInterfaces.cpp (NFC)
1 parent a638f88 commit 492f463

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

mlir/test/lib/IR/TestBuiltinAttributeInterfaces.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
//
77
//===----------------------------------------------------------------------===//
88

9+
#include <utility>
10+
911
#include "TestAttributes.h"
1012
#include "mlir/IR/BuiltinOps.h"
1113
#include "mlir/Pass/Pass.h"
@@ -62,8 +64,9 @@ struct TestElementsAttrInterface
6264
return;
6365
}
6466

65-
llvm::interleaveComma(*values, diag,
66-
[&](T value) { printOneElement(diag, value); });
67+
llvm::interleaveComma(*values, diag, [&](T value) {
68+
printOneElement(diag, std::move(value));
69+
});
6770
}
6871
};
6972
} // namespace

0 commit comments

Comments
 (0)