Commit 140e0661 authored by Christoph Mallon's avatar Christoph Mallon
Browse files

return: Simply use set_irn_in() instead of replacing the end block by a new one.

parent 43d387ca
...@@ -315,7 +315,7 @@ void normalize_n_returns(ir_graph *irg) ...@@ -315,7 +315,7 @@ void normalize_n_returns(ir_graph *irg)
endbl_in[i] = final; endbl_in[i] = final;
} }
exchange(endbl, new_r_Block(irg, n_finals, endbl_in)); set_irn_in(endbl, n_finals, endbl_in);
ir_free_resources(irg, IR_RESOURCE_IRN_LINK); ir_free_resources(irg, IR_RESOURCE_IRN_LINK);
/* Invalidate analysis information: /* Invalidate analysis information:
......
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