Another memory leak in vectorizable_store

Similar to the last one.

	* tree-vect-stmts.cc (vectorizable_store): Do not pre-allocate
	operands vector.
This commit is contained in:
Richard Biener 2024-01-18 14:55:49 +01:00
parent 569ebd6bdd
commit d190a5553a

View file

@ -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;