icf: Fix memory leak of a vector.

gcc/ChangeLog:

	* ipa-icf.h: Use auto_vec for memory_access_types.
This commit is contained in:
Martin Liska 2021-06-01 15:26:47 +02:00
parent 4ea5fe8b40
commit 088264ea44
1 changed files with 1 additions and 1 deletions

View File

@ -372,7 +372,7 @@ public:
hashval_t gcode_hash;
/* Vector of subpart of memory access types. */
vec<tree> memory_access_types;
auto_vec<tree> memory_access_types;
/* Total number of SSA names used in the function. */
unsigned ssa_names_size;