This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[lto] Use nth_parm_type in build_this_parm.
- From: Kazu Hirata <kazu at codesourcery dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Wed, 9 Aug 2006 13:45:55 -0700
- Subject: [lto] Use nth_parm_type in build_this_parm.
Hi,
Tested on x86_64-pc-linux-gnu. Committed to the LTO branch as
obvious.
Kazu Hirata
2006-08-09 Kazu Hirata <kazu@codesourcery.com>
* decl.c (build_this_parm): Use nth_parm_type.
Index: cp/decl.c
===================================================================
--- cp/decl.c (revision 116029)
+++ cp/decl.c (working copy)
@@ -5855,7 +5855,7 @@ build_this_parm (tree type, cp_cv_quals
tree parm;
cp_cv_quals this_quals;
- this_type = TREE_VALUE (TYPE_ARG_TYPES (type));
+ this_type = nth_parm_type (TYPE_ARG_TYPES (type), 0);
/* The `this' parameter is implicitly `const'; it cannot be
assigned to. */
this_quals = (quals & TYPE_QUAL_RESTRICT) | TYPE_QUAL_CONST;