aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/gimple-low.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.9/gcc/gimple-low.c')
-rw-r--r--gcc-4.9/gcc/gimple-low.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/gcc-4.9/gcc/gimple-low.c b/gcc-4.9/gcc/gimple-low.c
index 80fd786fd..da3fb9fb3 100644
--- a/gcc-4.9/gcc/gimple-low.c
+++ b/gcc-4.9/gcc/gimple-low.c
@@ -841,11 +841,6 @@ lower_builtin_posix_memalign (gimple_stmt_iterator *gsi)
void
record_vars_into (tree vars, tree fn)
{
- bool change_cfun = fn != current_function_decl;
-
- if (change_cfun)
- push_cfun (DECL_STRUCT_FUNCTION (fn));
-
for (; vars; vars = DECL_CHAIN (vars))
{
tree var = vars;
@@ -860,11 +855,8 @@ record_vars_into (tree vars, tree fn)
continue;
/* Record the variable. */
- add_local_decl (cfun, var);
+ add_local_decl (DECL_STRUCT_FUNCTION (fn), var);
}
-
- if (change_cfun)
- pop_cfun ();
}