added missing include
[libfirm] / ir / be / beifg.c
index 7f9a897..b43d260 100644 (file)
@@ -121,11 +121,12 @@ int be_ifg_is_simplicial(const be_ifg_t *ifg, const ir_node *irn)
        int degree = be_ifg_degree(ifg, irn);
        void *iter = be_ifg_neighbours_iter_alloca(ifg);
 
-       ir_node **neighbours = malloc(degree * sizeof(neighbours[0]));
+       ir_node **neighbours = xmalloc(degree * sizeof(neighbours[0]));
 
        ir_node *curr;
        int i, j;
 
+       i = 0;
        be_ifg_foreach_neighbour(ifg, iter, irn, curr)
                neighbours[i++] = curr;