beifg: Let be_ifg_foreach_neighbour() declare the node variable.
[libfirm] / ir / be / TEMPLATE / TEMPLATE_new_nodes.c
index d65034f..f160782 100644 (file)
@@ -49,7 +49,7 @@
  * @param n        the node to dump
  * @param reason   indicates which kind of information should be dumped
  */
-static void TEMPLATE_dump_node(FILE *F, ir_node *n, dump_reason_t reason)
+static void TEMPLATE_dump_node(FILE *F, const ir_node *n, dump_reason_t reason)
 {
        ir_mode *mode = NULL;
 
@@ -108,8 +108,7 @@ static void init_TEMPLATE_attributes(ir_node *node, arch_irn_flags_t flags,
        arch_set_irn_register_reqs_in(node, in_reqs);
 
        info            = be_get_info(node);
-       info->out_infos = NEW_ARR_D(reg_out_info_t, obst, n_res);
-       memset(info->out_infos, 0, n_res * sizeof(info->out_infos[0]));
+       info->out_infos = NEW_ARR_DZ(reg_out_info_t, obst, n_res);
 }
 
 static void set_TEMPLATE_value(ir_node *node, ir_tarval *value)