c++: cast split_nonconstant_init return val to void
commitf8cb417d6a4e2912d15a6d8bdffd1548cc649b49
authorJason Merrill <jason@redhat.com>
Mon, 19 Sep 2022 17:17:41 +0000 (19 19:17 +0200)
committerJason Merrill <jason@redhat.com>
Sat, 1 Oct 2022 03:45:08 +0000 (30 23:45 -0400)
tree9f63b93d9c9745588c5db4217ffabfe863938256
parentaa360fbf68b11e54017e8fa5b1bdb87ce7c19188
c++: cast split_nonconstant_init return val to void

We were already converting the result of expand_vec_init_expr to void; we
need to do the same for split_nonconstant_init.

The test that I noticed this with no longer fails without it.

gcc/cp/ChangeLog:

* cp-gimplify.cc (cp_genericize_init): Also convert the result of
split_nonconstant_init to void.
gcc/cp/cp-gimplify.cc