summaryrefslogtreecommitdiffhomepage
path: root/ir/be/beprefalloc.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/beprefalloc.c
parent79a69c11cb3ce8cba41d5bf8585c9f2775e5b2ee (diff)
util: Add an use MEMCPY().
Diffstat (limited to 'ir/be/beprefalloc.c')
-rw-r--r--ir/be/beprefalloc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ir/be/beprefalloc.c b/ir/be/beprefalloc.c
index 1619dab..710d9c5 100644
--- a/ir/be/beprefalloc.c
+++ b/ir/be/beprefalloc.c
@@ -173,7 +173,7 @@ static void mark_as_copy_of(ir_node *copy, ir_node *value)
copy_info->original_value = original;
/* copy over allocation preferences */
- memcpy(copy_info->prefs, info->prefs, n_regs * sizeof(copy_info->prefs[0]));
+ MEMCPY(copy_info->prefs, info->prefs, n_regs);
}
/**
@@ -467,7 +467,7 @@ static void set_congruence_prefs(ir_node *node, void *data)
allocation_info_t *head_info = get_allocation_info(head);
allocation_info_t *info = get_allocation_info(node);
- memcpy(info->prefs, head_info->prefs, n_regs * sizeof(info->prefs[0]));
+ MEMCPY(info->prefs, head_info->prefs, n_regs);
}
static void combine_congruence_classes(void)