Commit d199a4cf authored by Michael Beck's avatar Michael Beck
Browse files

Added assertion to irnode constructor

[r2658]
parent 177fe6d3
......@@ -113,6 +113,7 @@ new_ir_node (dbg_info *db, ir_graph *irg, ir_node *block, ir_op *op, ir_mode *mo
ir_node *res;
int node_size = offsetof (ir_node, attr) + op->attr_size;
assert(irg && op && mode);
res = (ir_node *) obstack_alloc (irg->obst, node_size);
res->kind = k_ir_node;
......
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