Commit 7f2f113a authored by yb9976's avatar yb9976
Browse files

Cleanup using C99.

parent ee5e273a
......@@ -291,8 +291,8 @@ static void copy_parameter_entities(ir_node *call, ir_graph *called_graph)
ir_type *old_type = get_entity_type(old_entity);
dbg_info *entity_dbgi = get_entity_dbg_info(old_entity);
ident *name = get_entity_ident(old_entity);
name = id_mangle3("", name, "$inlined");
ident *old_name = get_entity_ident(old_entity);
ident *name = id_mangle3("", old_name, "$inlined");
ir_entity *new_ent = new_entity(frame_type, name, old_type);
set_entity_dbg_info(new_ent, entity_dbgi);
set_entity_link(old_entity, new_ent);
......@@ -1138,7 +1138,6 @@ static void inline_into(ir_graph *irg, unsigned maxsize,
* the graph first.
*/
int benefice = curr_call->benefice;
ir_graph *copy;
/*
* Reduce the weight for recursive function IFF not all arguments
......@@ -1156,7 +1155,7 @@ static void inline_into(ir_graph *irg, unsigned maxsize,
* Note that recursive methods are never leafs, so it is
* sufficient to test this condition here.
*/
copy = create_irg_copy(callee);
ir_graph *copy = create_irg_copy(callee);
/* create_irg_copy() destroys the Proj links, recompute them */
phiproj_computed = false;
......@@ -1168,10 +1167,7 @@ static void inline_into(ir_graph *irg, unsigned maxsize,
set_irg_link(copy, callee_env);
assure_irg_properties(copy, IR_GRAPH_PROPERTY_CONSISTENT_LOOPINFO);
wenv_t wenv;
memset(&wenv, 0, sizeof(wenv));
wenv.x = callee_env;
wenv.ignore_callers = true;
wenv_t wenv = { .x = callee_env, .ignore_callers = true };
irg_walk_graph(copy, NULL, collect_calls2, &wenv);
/*
......
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