Skip to content

Commit 962bf00

Browse files
committed
Apply clang-tidy fixes for performance-unnecessary-value-param in IRAttributes.cpp (NFC)
1 parent b08960f commit 962bf00

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mlir/lib/Bindings/Python/IRAttributes.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1032,7 +1032,7 @@ class PyDenseResourceElementsAttribute
10321032
using PyConcreteAttribute::PyConcreteAttribute;
10331033

10341034
static PyDenseResourceElementsAttribute
1035-
getFromBuffer(py::buffer buffer, std::string name, PyType type,
1035+
getFromBuffer(py::buffer buffer, const std::string &name, const PyType &type,
10361036
std::optional<size_t> alignment, bool isMutable,
10371037
DefaultingPyMlirContext contextWrapper) {
10381038
if (!mlirTypeIsAShaped(type)) {

0 commit comments

Comments
 (0)