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 decl_class_context.


Hi,

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

Kazu Hirata

2006-07-11  Kazu Hirata  <kazu@codesourcery.com>

	* dwarf2out.c (decl_class_context): Use nth_parm_type.

Index: dwarf2out.c
===================================================================
--- dwarf2out.c	(revision 115203)
+++ dwarf2out.c	(working copy)
@@ -4851,7 +4851,7 @@ decl_class_context (tree decl)
     context = DECL_CONTEXT (decl);
   else
     context = TYPE_MAIN_VARIANT
-      (TREE_TYPE (TREE_VALUE (TYPE_ARG_TYPES (TREE_TYPE (decl)))));
+      (TREE_TYPE (nth_parm_type (TYPE_ARG_TYPES (TREE_TYPE (decl)), 0)));
 
   if (context && !TYPE_P (context))
     context = NULL_TREE;


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