replaced malloc by xmalloc
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Wed, 20 Jun 2007 12:45:01 +0000 (12:45 +0000)
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Wed, 20 Jun 2007 12:45:01 +0000 (12:45 +0000)
[r14664]

ir/be/becopyheur3.c

index a52ad24..d8de8b2 100644 (file)
@@ -148,8 +148,8 @@ int co_solve_heuristic_java(copy_opt_t *co)
                }
        }
 
-       node_map     = malloc((get_irg_last_idx(co->irg) + 1) * sizeof(node_map[0]));
-       inv_node_map = malloc((get_irg_last_idx(co->irg) + 1) * sizeof(inv_node_map[0]));
+       node_map     = xmalloc((get_irg_last_idx(co->irg) + 1) * sizeof(node_map[0]));
+       inv_node_map = xmalloc((get_irg_last_idx(co->irg) + 1) * sizeof(inv_node_map[0]));
 
        curr_idx = 0;
        be_ifg_foreach_node(ifg, nodes_it, n) {