projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
16c7779
)
Clear the ir_op after creation, so all operations get initialized with NULL
author
Michael Beck
<beck@ipd.info.uni-karlsruhe.de>
Wed, 27 Oct 2004 08:48:15 +0000
(08:48 +0000)
committer
Michael Beck
<beck@ipd.info.uni-karlsruhe.de>
Wed, 27 Oct 2004 08:48:15 +0000
(08:48 +0000)
[r4219]
ir/ir/irop.c
patch
|
blob
|
history
diff --git
a/ir/ir/irop.c
b/ir/ir/irop.c
index
eafc210
..
85e7f20
100644
(file)
--- a/
ir/ir/irop.c
+++ b/
ir/ir/irop.c
@@
-93,7
+93,9
@@
new_ir_op(opcode code, const char *name, op_pin_state p, unsigned flags, op_arit
{
ir_op *res;
- res = (ir_op *) xmalloc (sizeof (ir_op));
+ res = (ir_op *)xmalloc(sizeof(*res));
+ memset(res, 0, sizeof(*res));
+
res->code = code;
res->name = new_id_from_chars(name, strlen(name));
res->op_pin_state_pinned = p;