nv50/ir: Allow inserting isolated nodes to a graph.
This commit is contained in:
parent
1829484458
commit
099b81396e
|
@ -43,13 +43,11 @@ Graph::~Graph()
|
|||
|
||||
void Graph::insert(Node *node)
|
||||
{
|
||||
if (!root) {
|
||||
if (!root)
|
||||
root = node;
|
||||
size = 1;
|
||||
node->graph = this;
|
||||
} else {
|
||||
root->attach(node, Edge::TREE);
|
||||
}
|
||||
|
||||
node->graph = this;
|
||||
size++;
|
||||
}
|
||||
|
||||
void Graph::Edge::unlink()
|
||||
|
|
Loading…
Reference in New Issue