Use vec instead of raw array for built-in candidates.
authorJason Merrill <jason@redhat.com>
Tue, 5 Nov 2019 23:50:41 +0000 (18:50 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 5 Nov 2019 23:50:41 +0000 (18:50 -0500)
commit6fda5f4981f1d249813c124576b037b12f6e8a61
tree3222d58ac3ec63e30e42e02feb37a35e98bad514
parentf22f817cbdffe5b4e7d0ba7ab0eeb56ee61b3b72
Use vec instead of raw array for built-in candidates.

My operator<=> patch wants to split up build_new_op_1, which makes using a
tree array as well as the vec inconvenient.  build_new_op_1 already has a
vec, and build_conditional_expr_1 can release its vec right away, so this
doesn't increase garbage at all.

* call.c (build_builtin_candidate): Take args in a vec.
(add_builtin_candidate, add_builtin_candidates): Likewise.
(build_conditional_expr_1, build_new_op_1): Adjust.

From-SVN: r277863
gcc/cp/ChangeLog
gcc/cp/call.c