Commit d72b7e3a authored by Christoph Mallon's avatar Christoph Mallon
Browse files

irgraph: Assert in get_irg_obstack(), that no object is currently growing.

parent 0ada12ba
......@@ -129,6 +129,7 @@ static inline void set_irg_pinned(ir_graph *irg, op_pin_state p)
/** Returns the obstack associated with the graph. */
static inline struct obstack *get_irg_obstack(const ir_graph *irg)
{
assert(obstack_object_size(irg->obst) == 0);
return irg->obst;
}
......
Markdown is supported
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