summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/gallium/drivers/nv50/codegen/nv50_ir_graph.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gallium/drivers/nv50/codegen/nv50_ir_graph.cpp b/src/gallium/drivers/nv50/codegen/nv50_ir_graph.cpp
index b1287001c37..069dc485b6a 100644
--- a/src/gallium/drivers/nv50/codegen/nv50_ir_graph.cpp
+++ b/src/gallium/drivers/nv50/codegen/nv50_ir_graph.cpp
@@ -116,11 +116,11 @@ void Graph::Node::attach(Node *node, Edge::Type kind)
++this->outCount;
++node->inCount;
- assert(this->graph);
- if (!node->graph) {
- node->graph = this->graph;
- ++node->graph->size;
- }
+ assert(graph || node->graph);
+ if (!node->graph)
+ graph->insert(node);
+ if (!graph)
+ node->graph->insert(this);
if (kind == Edge::UNKNOWN)
graph->classifyEdges();