fix bad XMALLOC call
authorMatthias Braun <matze@braunis.de>
Sat, 11 Oct 2008 15:10:23 +0000 (15:10 +0000)
committerMatthias Braun <matze@braunis.de>
Sat, 11 Oct 2008 15:10:23 +0000 (15:10 +0000)
[r22675]

ir/be/becopyheur3.c

index 7d490e1..33b75fb 100644 (file)
@@ -150,8 +150,8 @@ int co_solve_heuristic_java(copy_opt_t *co)
                }
        }
 
-       node_map     = XMALLOC(int, get_irg_last_idx(co->irg) + 1);
-       inv_node_map = XMALLOC(int, get_irg_last_idx(co->irg) + 1);
+       node_map     = XMALLOCN(int, get_irg_last_idx(co->irg) + 1);
+       inv_node_map = XMALLOCN(int, get_irg_last_idx(co->irg) + 1);
 
        curr_idx = 0;
        be_ifg_foreach_node(ifg, nodes_it, n) {