summaryrefslogtreecommitdiffhomepage
path: root/ir/common
diff options
context:
space:
mode:
authorChristoph Mallon <mallon@cs.uni-saarland.de>2014-11-16 07:22:28 +0100
committerChristoph Mallon <mallon@cs.uni-saarland.de>2014-11-17 19:43:27 +0100
commite626a762d74bf2c33345acd94f595ead935916a0 (patch)
tree9292f430f9830010cfd2759969fb5520c8cd25ed /ir/common
parentbd3e22c60c884ef340dc0e79d8f3b0ebe645b704 (diff)
ir: Use add_irn_deps().
Diffstat (limited to 'ir/common')
-rw-r--r--ir/common/irtools.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/ir/common/irtools.c b/ir/common/irtools.c
index 5b197ec..d927213 100644
--- a/ir/common/irtools.c
+++ b/ir/common/irtools.c
@@ -121,10 +121,7 @@ ir_node *irn_copy_into_irg(const ir_node *node, ir_graph *irg)
copy_node_attr(irg, node, res);
/* duplicate dependency edges */
- for (int i = 0, n_deps = get_irn_n_deps(node); i < n_deps; ++i) {
- ir_node *dep = get_irn_dep(node, i);
- add_irn_dep(res, dep);
- }
+ add_irn_deps(res, node);
return res;
}