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_op_delete_call.
- From: Kazu Hirata <kazu at codesourcery dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Wed, 5 Jul 2006 10:19:44 -0700
- Subject: [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)