Patchwork [obv] convert one last cp_build_function_call to cp_build_function_call_nary

login
register
mail settings
Submitter Nathan Froyd
Date July 16, 2010, 2:37 a.m.
Message ID <20100716023723.GZ12333@codesourcery.com>
Download mbox | patch
Permalink /patch/59063/
State New
Headers show

Comments

Nathan Froyd - July 16, 2010, 2:37 a.m.
In my patch to convert cp_build_function_call to
cp_build_function_call_nary:

http://gcc.gnu.org/ml/gcc-patches/2010-05/msg01954.html

I missed one call to cp_build_function_call--probably because my grep
was not expecting to find the identifier + newline.

Fixed with the patch below.  I think this qualifies as obvious.
Committed after bootstrap and test on x86_64-unknown-linux-gnu.

-Nathan

	* init.c (build_new_1): Use cp_build_function_call_nary instead of
	cp_build_function_call.

Index: ChangeLog
===================================================================

Patch

Index: init.c
===================================================================
--- init.c	(revision 162238)
+++ init.c	(working copy)
@@ -2033,10 +2033,8 @@  build_new_1 (VEC(tree,gc) **placement, t
 	}
       alloc_fn = OVL_CURRENT (alloc_fn);
       class_addr = build1 (ADDR_EXPR, jclass_node, class_decl);
-      alloc_call = (cp_build_function_call
-		    (alloc_fn,
-		     build_tree_list (NULL_TREE, class_addr),
-		     complain));
+      alloc_call = cp_build_function_call_nary (alloc_fn, complain,
+						class_addr, NULL_TREE);
     }
   else if (TYPE_FOR_JAVA (elt_type) && MAYBE_CLASS_TYPE_P (elt_type))
     {