From patchwork Fri Jul 16 02:37:23 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [obv] convert one last cp_build_function_call to cp_build_function_call_nary Date: Thu, 15 Jul 2010 16:37:23 -0000 From: Nathan Froyd X-Patchwork-Id: 59063 Message-Id: <20100716023723.GZ12333@codesourcery.com> To: gcc-patches@gcc.gnu.org Cc: jason@redhat.com 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 =================================================================== 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)) {