Add the child nodes to the node's edges set.

This commit is contained in:
Bill Currie 2012-11-17 22:12:03 +09:00
parent dcc786b16f
commit 668871205a

View file

@ -325,6 +325,7 @@ dag_create (const flownode_t *flownode)
for (i = 0; i < 3; i++) {
n->children[i] = children[i];
if (n->children[i]) {
set_add (n->edges, n->children[i]->number);
set_add (n->children[i]->parents, n->number);
n->types[i] = operands[i + 1]->type;
}