summaryrefslogtreecommitdiffhomepage
path: root/ir/be/beinfo.c
diff options
context:
space:
mode:
authorChristoph Mallon <mallon@cs.uni-saarland.de>2014-10-30 10:50:53 +0100
committerChristoph Mallon <mallon@cs.uni-saarland.de>2014-10-31 16:34:44 +0100
commit9828c0d91b9e59a5e40d58ea2a67b851c97d9e1d (patch)
treec6521742b7584acb1ab05fae19cd0bb673f2ad27 /ir/be/beinfo.c
parent93d15208fe078472fbfe515f81ff5d853ac72aee (diff)
all: Use MEMCPY().
Diffstat (limited to 'ir/be/beinfo.c')
-rw-r--r--ir/be/beinfo.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ir/be/beinfo.c b/ir/be/beinfo.c
index 9e6826b..6a84b91 100644
--- a/ir/be/beinfo.c
+++ b/ir/be/beinfo.c
@@ -21,6 +21,7 @@
#include "irdump_t.h"
#include "irhooks.h"
#include "panic.h"
+#include "util.h"
static copy_attr_func old_phi_copy_attr;
@@ -72,9 +73,8 @@ static void new_phi_copy_attr(ir_graph *irg, const ir_node *old_node,
backend_info_t *new_info = be_get_info(new_node);
new_info->in_reqs = old_info->in_reqs;
- size_t n_outs = arch_get_irn_n_outs(old_node);
- memcpy(new_info->out_infos, old_info->out_infos,
- n_outs * sizeof(old_info->out_infos[0]));
+ size_t const n_outs = arch_get_irn_n_outs(old_node);
+ MEMCPY(new_info->out_infos, old_info->out_infos, n_outs);
old_phi_copy_attr(irg, old_node, new_node);
}