X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fir%2Firop.c;h=5ffa77bf12cb0ee5463d19eee17c73a29cef86fd;hb=bb5c6d5ce2e35c4074900017f8c8e1a4935054d0;hp=c9ea42cb3eaffcb30a501a6fda0e32490e757046;hpb=816aa2f422d57ebc0b513fa3ca66a90fa6058387;p=libfirm diff --git a/ir/ir/irop.c b/ir/ir/irop.c index c9ea42cb3..5ffa77bf1 100644 --- a/ir/ir/irop.c +++ b/ir/ir/irop.c @@ -235,10 +235,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));