c++: Minor refactoring in process_init_constructor_record
authorJason Merrill <jason@redhat.com>
Tue, 12 Jan 2021 20:57:05 +0000 (15:57 -0500)
committerJason Merrill <jason@redhat.com>
Thu, 14 Jan 2021 22:17:17 +0000 (17:17 -0500)
commitf1fc27b6c51b6dab8a3bd61e9006253a2572fa2a
treea2b94e5983254f58d3d9895ae0ab68af9f1ce637
parent387f6c15d303a8f8da508e419fea10a6ef0e2590
c++: Minor refactoring in process_init_constructor_record

This function had two different local variables for TREE_TYPE (field), one
of which shadowed a parameter, and wasn't using them consistently.

gcc/cp/ChangeLog:

* typeck2.c (process_init_constructor_record): Use fldtype
variable consistently.
gcc/cp/typeck2.c