Commit 9fb0fda8 authored by Connor Abbott's avatar Connor Abbott Committed by Marge Bot
Browse files

lima/gpir: Make lima_gpir_node_insert_child() useful

We weren't using this function before. The name is confusing, but it
changes the child while also fixing up the dependence link, if you don't
have access to it already. Or at least, I think that's what the
intention is, and what we'll need to change the branch condition in the
next commit. Adding a dependency between the new and old source doesn't
make any sense for this, and we also need to change the actual source.
Reviewed-by: Vasily Khoruzhick's avatarVasily Khoruzhick <>
Part-of: <!4125>
parent 5c3f20a2
......@@ -413,10 +413,10 @@ void gpir_node_insert_child(gpir_node *parent, gpir_node *child,
gpir_node_foreach_pred(parent, dep) {
if (dep->pred == child) {
gpir_node_replace_pred(dep, insert_child);
gpir_node_replace_child(parent, child, insert_child);
gpir_node_add_dep(insert_child, child, GPIR_DEP_INPUT);
void gpir_node_delete(gpir_node *node)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment