Better fix for wrong tarval computation of -(infinity).
[libfirm] / ir / stat / firmstat.c
index 71b5564..b3d1576 100644 (file)
@@ -1305,8 +1305,7 @@ static void update_graph_stat_2(graph_entry_t *global, graph_entry_t *graph)
 static void stat_register_dumper(const dumper_t *dumper)
 {
        dumper_t *p = XMALLOC(dumper_t);
-
-       memcpy(p, dumper, sizeof(*p));
+       *p = *dumper;
 
        p->next        = status->dumper;
        p->status      = status;
@@ -1429,7 +1428,7 @@ void stat_register_dumper_func(dump_graph_FUNC func)
 /*
  * Helper: get an ir_op from an opcode.
  */
-ir_op *stat_get_op_from_opcode(ir_opcode code)
+ir_op *stat_get_op_from_opcode(unsigned code)
 {
        return opcode_find_entry(code, status->ir_op_hash);
 }  /* stat_get_op_from_opcode */