call.c (build_op_delete_call): Use make_tree_vector and release_tree_vector.
* call.c (build_op_delete_call): Use make_tree_vector and release_tree_vector. From-SVN: r207000
This commit is contained in:
parent
6a5839c841
commit
928d850fcd
@ -1,3 +1,8 @@
|
||||
2014-01-23 Jason Merrill <jason@redhat.com>
|
||||
|
||||
* call.c (build_op_delete_call): Use make_tree_vector and
|
||||
release_tree_vector.
|
||||
|
||||
2014-01-23 Paolo Carlini <paolo.carlini@oracle.com>
|
||||
|
||||
PR c++/58980
|
||||
|
@ -5714,13 +5714,12 @@ build_op_delete_call (enum tree_code code, tree addr, tree size,
|
||||
else
|
||||
{
|
||||
tree ret;
|
||||
vec<tree, va_gc> *args;
|
||||
vec_alloc (args, 2);
|
||||
vec<tree, va_gc> *args = make_tree_vector ();
|
||||
args->quick_push (addr);
|
||||
if (FUNCTION_ARG_CHAIN (fn) != void_list_node)
|
||||
args->quick_push (size);
|
||||
ret = cp_build_function_call_vec (fn, &args, complain);
|
||||
vec_free (args);
|
||||
release_tree_vector (args);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user