nv50/ir: Allow inserting isolated nodes to a graph.

This commit is contained in:
Francisco Jerez 2011-11-15 21:39:22 +01:00 committed by Christoph Bumiller
parent 1829484458
commit 099b81396e
1 changed files with 4 additions and 6 deletions

View File

@ -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()