Skip to content

Commit a8abf81

Browse files
committed
[MLIR] Apply clang-tidy fixes for performance-unnecessary-value-param in ViewOpGraph.cpp (NFC)
1 parent 317b42e commit a8abf81

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

mlir/lib/Transforms/ViewOpGraph.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,8 @@ class PrintOpPass : public impl::ViewOpGraphBase<PrintOpPass> {
158158

159159
/// Emit a cluster (subgraph). The specified builder generates the body of the
160160
/// cluster. Return the anchor node of the cluster.
161-
Node emitClusterStmt(function_ref<void()> builder, std::string label = "") {
161+
Node emitClusterStmt(function_ref<void()> builder,
162+
const std::string &label = "") {
162163
int clusterId = ++counter;
163164
os << "subgraph cluster_" << clusterId << " {\n";
164165
os.indent();
@@ -269,7 +270,7 @@ class PrintOpPass : public impl::ViewOpGraphBase<PrintOpPass> {
269270
}
270271

271272
/// Emit a node statement.
272-
Node emitNodeStmt(std::string label, StringRef shape = kShapeNode,
273+
Node emitNodeStmt(const std::string &label, StringRef shape = kShapeNode,
273274
StringRef background = "") {
274275
int nodeId = ++counter;
275276
AttributeMap attrs;

0 commit comments

Comments
 (0)