Commit 4a90862e by Jason Merrill Committed by Jason Merrill

* optimize.c (maybe_clone_body): Fix parameter updating.

From-SVN: r47976
parent 414e05cf
2001-12-13 Jason Merrill <jason@redhat.com>
* optimize.c (maybe_clone_body): Fix parameter updating.
2001-12-12 Jason Merrill <jason@redhat.com> 2001-12-12 Jason Merrill <jason@redhat.com>
* decl.c (store_parm_decls): Remove parms_have_cleanups cruft. * decl.c (store_parm_decls): Remove parms_have_cleanups cruft.
......
...@@ -181,10 +181,10 @@ maybe_clone_body (fn) ...@@ -181,10 +181,10 @@ maybe_clone_body (fn)
/* Adjust the parameter names and locations. */ /* Adjust the parameter names and locations. */
parm = DECL_ARGUMENTS (fn); parm = DECL_ARGUMENTS (fn);
clone_parm = DECL_ARGUMENTS (clone); clone_parm = DECL_ARGUMENTS (clone);
/* Update the `this' parameter, which is always first. /* Update the `this' parameter, which is always first. */
Sometimes, we end update the `this' parameter twice because
we process it again in the loop below. That is harmless. */
update_cloned_parm (parm, clone_parm); update_cloned_parm (parm, clone_parm);
parm = TREE_CHAIN (parm);
clone_parm = TREE_CHAIN (clone_parm);
if (DECL_HAS_IN_CHARGE_PARM_P (fn)) if (DECL_HAS_IN_CHARGE_PARM_P (fn))
parm = TREE_CHAIN (parm); parm = TREE_CHAIN (parm);
if (DECL_HAS_VTT_PARM_P (fn)) if (DECL_HAS_VTT_PARM_P (fn))
......
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