File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff 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;
You can’t perform that action at this time.
0 commit comments