X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fopt%2Freturn.c;h=5eca06b4965220a9c87da84c0e23835635140899;hb=a619ce99e40de4eb4481a590970a881e9f24627a;hp=55bde8a9a774d27b6381fa261bfa91a6af52897f;hpb=4b363c6a4e0584ce755b5f82fc3d7a9dc38658b2;p=libfirm diff --git a/ir/opt/return.c b/ir/opt/return.c index 55bde8a9a..5eca06b49 100644 --- a/ir/opt/return.c +++ b/ir/opt/return.c @@ -58,7 +58,8 @@ * res = c; * return res; */ -void normalize_one_return(ir_graph *irg) { +void normalize_one_return(ir_graph *irg) +{ ir_node *endbl = get_irg_end_block(irg); int i, j, k, n, last_idx, n_rets, n_ret_vals = -1; unsigned char *returns; @@ -189,7 +190,8 @@ ir_graph_pass_t *normalize_one_return_pass(const char *name) * All predecessors of the Return block must be Jmp's of course, or we * cannot move it up, so we add blocks if needed. */ -static int can_move_ret(ir_node *ret) { +static int can_move_ret(ir_node *ret) +{ ir_node *retbl = get_nodes_block(ret); int i, n = get_irn_arity(ret); @@ -243,7 +245,8 @@ static int can_move_ret(ir_node *ret) { * else * return c; */ -void normalize_n_returns(ir_graph *irg) { +void normalize_n_returns(ir_graph *irg) +{ int i, j, n, n_rets, n_finals, n_ret_vals; ir_node *list = NULL; ir_node *final = NULL;