rtl-optimization/99054 - fix leak in fixup_partitions
authorRichard Biener <rguenther@suse.de>
Wed, 10 Feb 2021 09:17:15 +0000 (10:17 +0100)
committerRichard Biener <rguenther@suse.de>
Wed, 10 Feb 2021 10:31:13 +0000 (11:31 +0100)
commit72932511053596091ad291539022b51d9f2ba418
treedeed5164277a505e145f917fc814cd9878f0d746
parentbd0e37f68a3aed944df4eb739a0734bb87153749
rtl-optimization/99054 - fix leak in fixup_partitions

This fixes a leak of the vector retured by find_partition_fixes
by turning it into an auto_vec.

2021-02-10  Richard Biener  <rguenther@suse.de>

PR rtl-optimization/99054
* cfgrtl.c (rtl-optimization/99054): Return an auto_vec.
(fixup_partitions): Adjust.
(rtl_verify_edges): Likewise.
gcc/cfgrtl.c