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

Assert that there is currently no object under construction, when calling be_get_be_obst().

parent 0b94073d
......@@ -134,8 +134,10 @@ static inline const arch_env_t *be_get_irg_arch_env(const ir_graph *irg)
static inline struct obstack *be_get_be_obst(const ir_graph *irg)
{
be_irg_t *birg = be_birg_from_irg(irg);
return &birg->obst;
be_irg_t *const birg = be_birg_from_irg(irg);
struct obstack *const obst = &birg->obst;
assert(obstack_object_size(obst) == 0);
return obst;
}
static inline be_stack_layout_t *be_get_irg_stack_layout(const ir_graph *irg)
......
......@@ -1521,7 +1521,6 @@ static ir_node *gen_Start(ir_node *node)
size_t i;
/* start building list of start constraints */
assert(obstack_object_size(obst) == 0);
/* calculate number of outputs */
n_outs = 4; /* memory, g0, g7, sp */
......
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