icf: Fix memory leak of a vector.
authorMartin Liska <mliska@suse.cz>
Tue, 1 Jun 2021 13:26:47 +0000 (15:26 +0200)
committerMartin Liska <mliska@suse.cz>
Wed, 2 Jun 2021 06:46:24 +0000 (08:46 +0200)
gcc/ChangeLog:

* ipa-icf.h: Use auto_vec for memory_access_types.

gcc/ipa-icf.h

index 9f21a20..4b4d492 100644 (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;