summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMehdi Amini <joker.eph@gmail.com>2023-10-20 01:33:05 -0700
committerMehdi Amini <joker.eph@gmail.com>2023-11-18 15:38:21 -0800
commit962bf002fec2672ea61de49cfb945ff031830819 (patch)
treed265a30e1bc20a9f85785124dd0c1928ea415f8a
parentb08960f18888e96d64874486354c16b4116c5f8f (diff)
Apply clang-tidy fixes for performance-unnecessary-value-param in IRAttributes.cpp (NFC)
-rw-r--r--mlir/lib/Bindings/Python/IRAttributes.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/mlir/lib/Bindings/Python/IRAttributes.cpp b/mlir/lib/Bindings/Python/IRAttributes.cpp
index 94fa2527e408..dda2003ba037 100644
--- a/mlir/lib/Bindings/Python/IRAttributes.cpp
+++ b/mlir/lib/Bindings/Python/IRAttributes.cpp
@@ -1032,7 +1032,7 @@ public:
using PyConcreteAttribute::PyConcreteAttribute;
static PyDenseResourceElementsAttribute
- getFromBuffer(py::buffer buffer, std::string name, PyType type,
+ getFromBuffer(py::buffer buffer, const std::string &name, const PyType &type,
std::optional<size_t> alignment, bool isMutable,
DefaultingPyMlirContext contextWrapper) {
if (!mlirTypeIsAShaped(type)) {