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


Hi,

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

Kazu Hirata

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

	* call.c (build_op_delete_call): Use nth_parm_type.

Index: cp/call.c
===================================================================
--- cp/call.c	(revision 115150)
+++ cp/call.c	(working copy)
@@ -4039,7 +4039,7 @@ build_op_delete_call (enum tree_code cod
 
 	  /* The first argument must be "void *".  */
 	  t = TYPE_ARG_TYPES (TREE_TYPE (OVL_CURRENT (fn)));
-	  if (!same_type_p (TREE_VALUE (t), ptr_type_node))
+	  if (!same_type_p (nth_parm_type (t, 0), ptr_type_node))
 	    continue;
 	  /* On the first pass, check the rest of the arguments.  */
 	  if (pass == 0)


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