This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[lto] Use nth_parm_type in write_function_type.


Hi,

Tested on x86_64-pc-linux-gnu.  Committed to the LTO branch as
obvious.

Kazu Hirata

2006-06-26  Kazu Hirata  <kazu@codesourcery.com>

	* mangle.c (write_function_type): Use nth_parm_type.

Index: cp/mangle.c
===================================================================
--- cp/mangle.c	(revision 114740)
+++ cp/mangle.c	(working copy)
@@ -1831,7 +1831,7 @@ write_function_type (const tree type)
     {
       /* The first parameter must be a POINTER_TYPE pointing to the
 	 `this' parameter.  */
-      tree this_type = TREE_TYPE (TREE_VALUE (TYPE_ARG_TYPES (type)));
+      tree this_type = TREE_TYPE (nth_parm_type (TYPE_ARG_TYPES (type), 0));
       write_CV_qualifiers_for_type (this_type);
     }
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]