Fixed liveness calculation: we need the live arguments, not registers ...
[libfirm] / ir / be / mips / mips_new_nodes.c
index 05cb5ab..e691a8c 100644 (file)
@@ -387,7 +387,7 @@ int get_mips_n_res(const ir_node *node) {
  * Initializes the nodes attributes.
  */
 void init_mips_attributes(ir_node *node, arch_irn_flags_t flags, const mips_register_req_t **in_reqs,
-                                                  const mips_register_req_t **out_reqs, int n_res)
+                                                  const mips_register_req_t **out_reqs, int n_res, unsigned latency)
 {
        mips_attr_t *attr = get_mips_attr(node);
 
@@ -397,7 +397,7 @@ void init_mips_attributes(ir_node *node, arch_irn_flags_t flags, const mips_regi
        attr->n_res = n_res;
        attr->in_req = in_reqs;
 
-       memset(attr->slots, 0, n_res * sizeof(attr->slots[0]));
+       memset((void *)attr->slots, 0, n_res * sizeof(attr->slots[0]));
 }
 
 /************************************************************************