irgraph: Assert in get_irg_obstack(), that no object is currently growing.
authorChristoph Mallon <christoph.mallon@gmx.de>
Sat, 1 Dec 2012 11:03:26 +0000 (12:03 +0100)
committerChristoph Mallon <christoph.mallon@gmx.de>
Sat, 1 Dec 2012 18:24:45 +0000 (19:24 +0100)
ir/ir/irgraph_t.h

index f2bfe63..1360c99 100644 (file)
@@ -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;
 }