X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fir%2Firop.c;h=a95fcb011e6313ed79cfbff6ba73fe33a13c4cee;hb=7c9171526adbd5ee4135027fb436770e91ca7434;hp=c9ea42cb3eaffcb30a501a6fda0e32490e757046;hpb=816aa2f422d57ebc0b513fa3ca66a90fa6058387;p=libfirm diff --git a/ir/ir/irop.c b/ir/ir/irop.c index c9ea42cb3..a95fcb011 100644 --- a/ir/ir/irop.c +++ b/ir/ir/irop.c @@ -23,9 +23,7 @@ * @author Christian Schaefer, Goetz Lindenmaier, Michael Beck * @version $Id$ */ -#ifdef HAVE_CONFIG_H -# include "config.h" -#endif +#include "config.h" #ifdef HAVE_STRING_H # include @@ -235,10 +233,7 @@ new_ir_op(unsigned code, const char *name, op_pin_state p, unsigned flags, op_arity opar, int op_index, size_t attr_size, const ir_op_ops *ops) { - ir_op *res; - - res = (ir_op *)xmalloc(sizeof(*res)); - memset(res, 0, sizeof(*res)); + ir_op *res = XMALLOCZ(ir_op); res->code = code; res->name = new_id_from_chars(name, strlen(name));