Commit 98febea1 authored by Sebastian Hack's avatar Sebastian Hack
Browse files

A tiny bug

parent 2f47d507
......@@ -55,7 +55,7 @@ typedef struct _mris_irn_t {
static void *mris_irn_data_init(phase_t *ph, const ir_node *irn, void *data)
{
mris_irn_t *mi = data ? data : phase_alloc(ph, sizeof(mi[0]));
memset(data, 0, sizeof(mi[0]));
memset(mi, 0, sizeof(mi[0]));
INIT_LIST_HEAD(&mi->lineage_list);
return mi;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment