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>
|
2014-01-23 Paolo Carlini <paolo.carlini@oracle.com>
|
||||||
|
|
||||||
PR c++/58980
|
PR c++/58980
|
||||||
|
@ -5714,13 +5714,12 @@ build_op_delete_call (enum tree_code code, tree addr, tree size,
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
tree ret;
|
tree ret;
|
||||||
vec<tree, va_gc> *args;
|
vec<tree, va_gc> *args = make_tree_vector ();
|
||||||
vec_alloc (args, 2);
|
|
||||||
args->quick_push (addr);
|
args->quick_push (addr);
|
||||||
if (FUNCTION_ARG_CHAIN (fn) != void_list_node)
|
if (FUNCTION_ARG_CHAIN (fn) != void_list_node)
|
||||||
args->quick_push (size);
|
args->quick_push (size);
|
||||||
ret = cp_build_function_call_vec (fn, &args, complain);
|
ret = cp_build_function_call_vec (fn, &args, complain);
|
||||||
vec_free (args);
|
release_tree_vector (args);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user