}
/** Returns the obstack associated with the graph. */
-static inline struct obstack *get_irg_obstack(const ir_graph *irg)
+static inline struct obstack *get_irg_obstack(ir_graph *const irg)
{
- return irg->obst;
+ assert(obstack_object_size(&irg->obst) == 0);
+ return &irg->obst;
}
if (idx + 1 == irg->last_node_idx)
--irg->last_node_idx;
irg->idx_irn_map[idx] = NULL;
- obstack_free(irg->obst, n);
+ obstack_free(&irg->obst, n);
}
/**