Empty the base_types vector before (re)populating it
authorEric Botcazou <ebotcazou@adacore.com>
Fri, 4 Feb 2022 11:07:46 +0000 (12:07 +0100)
committerEric Botcazou <ebotcazou@adacore.com>
Fri, 4 Feb 2022 11:10:05 +0000 (12:10 +0100)
commit38948b77dbc16f4c6cf6cff8661bab699b306f03
treeb48f5ae1cf788659e4d5f864bebf59981d54af0d
parentbd14cdceb9c6f4800e25a9fbca635a1d4c06fd32
Empty the base_types vector before (re)populating it

Otherwise Bad Things happen when it is populated several times.

gcc/
PR debug/104366
* dwarf2out.cc (dwarf2out_finish): Empty base_types.
(dwarf2out_early_finish): Likewise.
gcc/dwarf2out.cc