X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2Fbecopyilp.c;h=07e64947923298f8207da0cf150f7a0f7e20853f;hb=afbbc0b1ccd684c4c24bfd43d0f994123245f39f;hp=393314e7577eb8e83ef5fa82f7dd3a5e9405befc;hpb=1ce363f80e6a204d4011f85813362d9bd1d0e7e4;p=libfirm diff --git a/ir/be/becopyilp.c b/ir/be/becopyilp.c index 393314e75..07e649479 100644 --- a/ir/be/becopyilp.c +++ b/ir/be/becopyilp.c @@ -36,8 +36,8 @@ #include "bemodule.h" #include "error.h" -#include -#include +#include "lc_opts.h" +#include "lc_opts_enum.h" #ifdef WITH_ILP @@ -95,7 +95,7 @@ BE_REGISTER_MODULE_CONSTRUCTOR(be_init_copyilp); size_red_t *new_size_red(copy_opt_t *co) { - size_red_t *res = xmalloc(sizeof(*res)); + size_red_t *res = XMALLOC(size_red_t); res->co = co; res->all_removed = pset_new_ptr_default(); @@ -208,8 +208,7 @@ void free_size_red(size_red_t *sr) { #include ilp_env_t *new_ilp_env(copy_opt_t *co, ilp_callback build, ilp_callback apply, void *env) { - ilp_env_t *res = xmalloc(sizeof(*res)); - assert(res); + ilp_env_t *res = XMALLOC(ilp_env_t); res->co = co; res->build = build;