summaryrefslogtreecommitdiffhomepage
path: root/ir/be/beinfo.c
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2012-12-01 12:25:13 +0100
committerChristoph Mallon <christoph.mallon@gmx.de>2012-12-02 09:56:23 +0100
commit1209ae49db1b42e9d39269eb3a86b187f0c263d9 (patch)
treeb0460fa36473a36f0e0995c55619ac689bced693 /ir/be/beinfo.c
parent5933e03f372c8a12b29d29b5525e0f15d53f09db (diff)
array: Add and use NEW_ARR_DZ().
Diffstat (limited to 'ir/be/beinfo.c')
-rw-r--r--ir/be/beinfo.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ir/be/beinfo.c b/ir/be/beinfo.c
index 903e16d..652d7ca 100644
--- a/ir/be/beinfo.c
+++ b/ir/be/beinfo.c
@@ -72,8 +72,7 @@ void be_info_new_node(ir_graph *irg, ir_node *node)
info->flags |= arch_irn_flags_not_scheduled;
/* FALLTHROUGH */
case iro_Phi:
- info->out_infos = NEW_ARR_D(reg_out_info_t, obst, 1);
- memset(info->out_infos, 0, 1 * sizeof(info->out_infos[0]));
+ info->out_infos = NEW_ARR_DZ(reg_out_info_t, obst, 1);
info->out_infos[0].req = arch_no_register_req;
break;
default: