summaryrefslogtreecommitdiffhomepage
path: root/ir/be/bestat.c
diff options
context:
space:
mode:
authorChristoph Mallon <mallon@cs.uni-saarland.de>2014-10-24 22:23:31 +0200
committerChristoph Mallon <mallon@cs.uni-saarland.de>2014-10-27 14:56:56 +0100
commit18489c39ee20b6b0f6cef5f79981ec70c042a77c (patch)
treeb09e9ac10c810a00bf944977fa807eb89c90e84d /ir/be/bestat.c
parent79a69c11cb3ce8cba41d5bf8585c9f2775e5b2ee (diff)
util: Add an use MEMCPY().
Diffstat (limited to 'ir/be/bestat.c')
-rw-r--r--ir/be/bestat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ir/be/bestat.c b/ir/be/bestat.c
index 4ccdf59..fe3f75b 100644
--- a/ir/be/bestat.c
+++ b/ir/be/bestat.c
@@ -150,7 +150,7 @@ void be_subtract_node_stats(be_node_stats_t *stats, be_node_stats_t *sub)
void be_copy_node_stats(be_node_stats_t *dest, be_node_stats_t *src)
{
- memcpy(dest, src, sizeof(be_node_stats_t));
+ MEMCPY(dest, src, 1);
}
static const char *get_stat_name(enum be_stat_tag_t tag)