diff options
author | Richard Biener <rguenther@suse.de> | 2024-01-18 14:55:49 +0100 |
---|---|---|
committer | Richard Biener <rguenther@suse.de> | 2024-01-18 16:07:34 +0100 |
commit | d190a5553a1a8e8c279f96a998a5343fdd3feb8b (patch) | |
tree | b5bfebe59d8430920d4baaf98d787d82a30f7343 | |
parent | 569ebd6bdd45cb5f90634c93e9623d96928b4fce (diff) | |
download | gcc-d190a5553a1a8e8c279f96a998a5343fdd3feb8b.zip gcc-d190a5553a1a8e8c279f96a998a5343fdd3feb8b.tar.gz gcc-d190a5553a1a8e8c279f96a998a5343fdd3feb8b.tar.bz2 |
Another memory leak in vectorizable_store
Similar to the last one.
* tree-vect-stmts.cc (vectorizable_store): Do not pre-allocate
operands vector.
-rw-r--r-- | gcc/tree-vect-stmts.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-vect-stmts.cc b/gcc/tree-vect-stmts.cc index 69d76c3..09749ae 100644 --- a/gcc/tree-vect-stmts.cc +++ b/gcc/tree-vect-stmts.cc @@ -8542,7 +8542,7 @@ vectorizable_store (vec_info *vinfo, alias_off = build_int_cst (ref_type, 0); stmt_vec_info next_stmt_info = first_stmt_info; - auto_vec<tree> vec_oprnds (ncopies); + auto_vec<tree> vec_oprnds; /* For costing some adjacent vector stores, we'd like to cost with the total number of them once instead of cost each one by one. */ unsigned int n_adjacent_stores = 0; |