aboutsummaryrefslogtreecommitdiff
path: root/gcc/graphviz.h
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/graphviz.h')
-rw-r--r--gcc/graphviz.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/graphviz.h b/gcc/graphviz.h
index 5943589..9a0fe6f 100644
--- a/gcc/graphviz.h
+++ b/gcc/graphviz.h
@@ -311,6 +311,16 @@ struct node_id : public ast_node
m_port = std::make_unique<port> (*other.m_port);
}
+ node_id &operator= (const node_id &other)
+ {
+ m_id = other.m_id;
+ if (other.m_port)
+ m_port = std::make_unique<port> (*other.m_port);
+ else
+ m_port = nullptr;
+ return *this;
+ }
+
void print (writer &w) const final override;
id m_id;