This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[lto] Use nth_parm_type in decl_class_context.
- From: Kazu Hirata <kazu at codesourcery dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Tue, 11 Jul 2006 10:32:35 -0700
- Subject: [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;