projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove the unused attribute const arch_env_t *arch_env from struct draw_chordal_env_t.
[libfirm]
/
ir
/
ir
/
irop.c
diff --git
a/ir/ir/irop.c
b/ir/ir/irop.c
index
c9ea42c
..
5ffa77b
100644
(file)
--- 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)
{
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));
res->code = code;
res->name = new_id_from_chars(name, strlen(name));