summaryrefslogtreecommitdiffhomepage
path: root/ir/be/benode.c
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2016-10-05 07:58:39 +0200
committerChristoph Mallon <christoph.mallon@gmx.de>2016-10-06 07:23:30 +0200
commit3e50084e28b0c277a4a3f33a884a5296929d4348 (patch)
tree51c4ac140de44d4414e4dc032c8bd4b09a534eb2 /ir/be/benode.c
parent26806192930ef74dc98209eb4b605caefff55ced (diff)
Use 'default_copy_attr()'.
Diffstat (limited to 'ir/be/benode.c')
-rw-r--r--ir/be/benode.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/ir/be/benode.c b/ir/be/benode.c
index 31746fc..87c4229 100644
--- a/ir/be/benode.c
+++ b/ir/be/benode.c
@@ -595,9 +595,7 @@ static void dump_node(FILE *f, const ir_node *irn, dump_reason_t reason)
void be_copy_attr(ir_graph *const irg, ir_node const *const old_node, ir_node *const new_node)
{
- void const *const old_attr = get_irn_generic_attr_const(old_node);
- void *const new_attr = get_irn_generic_attr(new_node);
- memcpy(new_attr, old_attr, get_op_attr_size(get_irn_op(old_node)));
+ default_copy_attr(irg, old_node, new_node);
backend_info_t *const old_info = be_get_info(old_node);
backend_info_t *const new_info = be_get_info(new_node);