diff options
author | Jason Merrill <jason@redhat.com> | 2001-12-13 10:06:42 -0500 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2001-12-13 10:06:42 -0500 |
commit | 4a90862e3a3ea61399acc40605aa6d196d5d1a57 (patch) | |
tree | a999cb5b23ccc84f9c45b7eb28238ff819ba2af6 /gcc/cp/optimize.c | |
parent | 414e05cffba6eda254f91ea66e1edb04b55852a2 (diff) | |
download | gcc-4a90862e3a3ea61399acc40605aa6d196d5d1a57.zip gcc-4a90862e3a3ea61399acc40605aa6d196d5d1a57.tar.gz gcc-4a90862e3a3ea61399acc40605aa6d196d5d1a57.tar.bz2 |
* optimize.c (maybe_clone_body): Fix parameter updating.
From-SVN: r47976
Diffstat (limited to 'gcc/cp/optimize.c')
-rw-r--r-- | gcc/cp/optimize.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/cp/optimize.c b/gcc/cp/optimize.c index 99d8987..ae343dc 100644 --- a/gcc/cp/optimize.c +++ b/gcc/cp/optimize.c @@ -181,10 +181,10 @@ maybe_clone_body (fn) /* Adjust the parameter names and locations. */ parm = DECL_ARGUMENTS (fn); clone_parm = DECL_ARGUMENTS (clone); - /* 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 the `this' parameter, which is always first. */ update_cloned_parm (parm, clone_parm); + parm = TREE_CHAIN (parm); + clone_parm = TREE_CHAIN (clone_parm); if (DECL_HAS_IN_CHARGE_PARM_P (fn)) parm = TREE_CHAIN (parm); if (DECL_HAS_VTT_PARM_P (fn)) |