Use vec::reserve before vec_safe_grow_cleared is called
authorMartin Liska <mliska@suse.cz>
Fri, 24 Jul 2020 12:33:27 +0000 (14:33 +0200)
committerMartin Liska <mliska@suse.cz>
Mon, 27 Jul 2020 07:16:16 +0000 (09:16 +0200)
commit7f5c0f328eced560a204bb8e3eae0d45795dd235
treec6f100254eb806a20eb3845e469bd68c4b05bed9
parent20d0d6527c36005a9664f7ac9eb50f1071d5670c
Use vec::reserve before vec_safe_grow_cleared is called

gcc/ChangeLog:

PR lto/45375
* symbol-summary.h: Call vec_safe_reserve before grow is called
in order to grow to a reasonable size.
* vec.h (vec_safe_reserve): Add missing function for vl_ptr
type.
gcc/symbol-summary.h
gcc/vec.h