Commit 4548ead5 authored by yb9976's avatar yb9976
Browse files

Deactivate edges before freeing an irg.

[r20869]
parent 798d009e
......@@ -529,6 +529,8 @@ ir_graph *create_irg_copy(ir_graph *irg) {
void free_ir_graph(ir_graph *irg) {
assert(is_ir_graph(irg));
edges_deactivate(irg);
hook_free_graph(irg);
if (irg->outs_state != outs_none)
free_irg_outs(irg);
......
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