[MLIR] Apply clang-tidy fixes for performance-unnecessary-value-param in ExecutionEngineModule.cpp (NFC)
diff --git a/mlir/lib/Bindings/Python/ExecutionEngineModule.cpp b/mlir/lib/Bindings/Python/ExecutionEngineModule.cpp
index 4885d62c..8bb493e 100644
--- a/mlir/lib/Bindings/Python/ExecutionEngineModule.cpp
+++ b/mlir/lib/Bindings/Python/ExecutionEngineModule.cpp
@@ -45,7 +45,7 @@
referencedObjects.push_back(obj);
}
- static nb::object createFromCapsule(nb::object capsule) {
+ static nb::object createFromCapsule(const nb::object &capsule) {
MlirExecutionEngine rawPm =
mlirPythonCapsuleToExecutionEngine(capsule.ptr());
if (mlirExecutionEngineIsNull(rawPm))
@@ -113,7 +113,7 @@
.def(
"raw_register_runtime",
[](PyExecutionEngine &executionEngine, const std::string &name,
- nb::object callbackObj) {
+ const nb::object &callbackObj) {
executionEngine.addReferencedObject(callbackObj);
uintptr_t rawSym =
nb::cast<uintptr_t>(nb::getattr(callbackObj, "value"));