Simple leak fix.

Patch can bootstrap on x86_64-linux-gnu and survives regression tests.

Ready to be installed?
Thanks,
Martin

gcc/ChangeLog:

        * ipa-icf.h: Use auto_vec for memory_access_types.
---
 gcc/ipa-icf.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/ipa-icf.h b/gcc/ipa-icf.h
index 9f21a2018fc..4b4d4924512 100644
--- a/gcc/ipa-icf.h
+++ b/gcc/ipa-icf.h
@@ -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;
--
2.31.1

Reply via email to