diff options
Diffstat (limited to 'gcc/tree-optimize.c')
-rw-r--r-- | gcc/tree-optimize.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/tree-optimize.c b/gcc/tree-optimize.c index 7cdb30b..d575990 100644 --- a/gcc/tree-optimize.c +++ b/gcc/tree-optimize.c @@ -524,7 +524,9 @@ tree_rest_of_compilation (tree fndecl, bool nested_p) if (!e->inline_failed) cgraph_clone_inlined_nodes (e, true); } - cfun->saved_tree = save_body (fndecl, &cfun->saved_args); + cfun->saved_static_chain_decl = cfun->static_chain_decl; + cfun->saved_tree = save_body (fndecl, &cfun->saved_args, + &cfun->saved_static_chain_decl); } if (flag_inline_trees) @@ -557,6 +559,7 @@ tree_rest_of_compilation (tree fndecl, bool nested_p) { DECL_SAVED_TREE (fndecl) = cfun->saved_tree; DECL_ARGUMENTS (fndecl) = cfun->saved_args; + cfun->static_chain_decl = cfun->saved_static_chain_decl; /* When not in unit-at-a-time mode, we must preserve out of line copy representing node before inlining. Restore original outgoing edges |