X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fopt%2Fldst2.c;h=1bb87dfee925c625ae4cdb6b3e242e0cb2186a72;hb=afbbc0b1ccd684c4c24bfd43d0f994123245f39f;hp=17029a28efcf26cb5d4cc79411fe453d98b1ea1f;hpb=e9acaaa06c895c2632071e8d42e8632253c3d9f8;p=libfirm diff --git a/ir/opt/ldst2.c b/ir/opt/ldst2.c index 17029a28e..1bb87dfee 100644 --- a/ir/opt/ldst2.c +++ b/ir/opt/ldst2.c @@ -29,7 +29,7 @@ #include "iroptimize.h" -#include "array.h" +#include "array_t.h" #include "debug.h" #include "ircons.h" #include "irgraph.h" @@ -525,7 +525,7 @@ static void Detotalise(ir_graph* irg) size_t npreds = get_Block_n_cfgpreds(end_block); size_t i; - unfinished_phis = xmalloc(sizeof(*unfinished_phis) * count_addrs); + unfinished_phis = XMALLOCN(ir_node, count_addrs); for (i = 0; i < count_addrs; i++) { unfinished_phis[i] = NULL; }