projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0ada12b
)
irgraph: Assert in get_irg_obstack(), that no object is currently growing.
author
Christoph Mallon
<christoph.mallon@gmx.de>
Sat, 1 Dec 2012 11:03:26 +0000
(12:03 +0100)
committer
Christoph Mallon
<christoph.mallon@gmx.de>
Sat, 1 Dec 2012 18:24:45 +0000
(19:24 +0100)
ir/ir/irgraph_t.h
patch
|
blob
|
history
diff --git
a/ir/ir/irgraph_t.h
b/ir/ir/irgraph_t.h
index
f2bfe63
..
1360c99
100644
(file)
--- a/
ir/ir/irgraph_t.h
+++ b/
ir/ir/irgraph_t.h
@@
-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;
}