aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2021-06-01 15:26:47 +0200
committerMartin Liska <mliska@suse.cz>2021-06-02 08:46:24 +0200
commit088264ea445efcee5f8f06150b5f9f508f21960b (patch)
tree47f1964748581a91c3c69c714f201106c0c821dd
parent4ea5fe8b4002d15c8706749a3c43ed107c9a02f9 (diff)
downloadgcc-088264ea445efcee5f8f06150b5f9f508f21960b.zip
gcc-088264ea445efcee5f8f06150b5f9f508f21960b.tar.gz
gcc-088264ea445efcee5f8f06150b5f9f508f21960b.tar.bz2
icf: Fix memory leak of a vector.
gcc/ChangeLog: * ipa-icf.h: Use auto_vec for memory_access_types.
-rw-r--r--gcc/ipa-icf.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/ipa-icf.h b/gcc/ipa-icf.h
index 9f21a20..4b4d492 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;