nv50/ir: Allow inserting isolated nodes to a graph.
This commit is contained in:
committed by
Christoph Bumiller
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()
|
||||
|
||||
Reference in New Issue
Block a user