projects
/
platform
/
upstream
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4ea5fe8
)
icf: Fix memory leak of a vector.
author
Martin Liska
<mliska@suse.cz>
Tue, 1 Jun 2021 13:26:47 +0000
(15:26 +0200)
committer
Martin 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
patch
|
blob
|
history
diff --git
a/gcc/ipa-icf.h
b/gcc/ipa-icf.h
index
9f21a20
..
4b4d492
100644
(file)
--- 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;