tree-inline.c (setup_one_parameter): Remove dead code.

* tree-inline.c (setup_one_parameter): Remove dead code.

From-SVN: r135470
This commit is contained in:
Eric Botcazou 2008-05-17 13:32:23 +00:00 committed by Eric Botcazou
parent 1e17e15ae5
commit 7c7d304769
2 changed files with 6 additions and 16 deletions

View File

@ -1,3 +1,7 @@
2008-05-17 Eric Botcazou <ebotcazou@adacore.com>
* tree-inline.c (setup_one_parameter): Remove dead code.
2008-05-17 Eric Botcazou <ebotcazou@adacore.com>
* fold-const.c (fold_unary) <CASE_CONVERT>: Fold the cast into

View File

@ -1440,7 +1440,6 @@ setup_one_parameter (copy_body_data *id, tree p, tree value, tree fn,
{
tree init_stmt;
tree var;
tree var_sub;
tree rhs = value;
tree def = (gimple_in_ssa_p (cfun)
? gimple_default_def (id->src_cfun, p) : NULL);
@ -1496,23 +1495,10 @@ setup_one_parameter (copy_body_data *id, tree p, tree value, tree fn,
add_referenced_var (var);
}
/* See if the frontend wants to pass this by invisible reference. If
so, our new VAR_DECL will have REFERENCE_TYPE, and we need to
replace uses of the PARM_DECL with dereferences. */
if (TREE_TYPE (var) != TREE_TYPE (p)
&& POINTER_TYPE_P (TREE_TYPE (var))
&& TREE_TYPE (TREE_TYPE (var)) == TREE_TYPE (p))
{
insert_decl_map (id, var, var);
var_sub = build_fold_indirect_ref (var);
}
else
var_sub = var;
/* Register the VAR_DECL as the equivalent for the PARM_DECL;
that way, when the PARM_DECL is encountered, it will be
automatically replaced by the VAR_DECL. */
insert_decl_map (id, p, var_sub);
insert_decl_map (id, p, var);
/* Declare this new variable. */
TREE_CHAIN (var) = *vars;
@ -1572,7 +1558,7 @@ setup_one_parameter (copy_body_data *id, tree p, tree value, tree fn,
if (rhs == error_mark_node)
{
insert_decl_map (id, p, var_sub);
insert_decl_map (id, p, var);
return;
}