tree-optimization/98192 - fix double free in SLP

This makes sure to clear the vector pointer on release.

2020-12-08  Richard Biener  <rguenther@suse.de>

	PR tree-optimization/98192
	* tree-vect-slp.c (vect_build_slp_instance): Get scalar_stmts
	by reference.
This commit is contained in:
Richard Biener 2020-12-08 12:54:48 +01:00
parent 3a008b1d12
commit 1746681c3c

View File

@ -2212,7 +2212,7 @@ vect_analyze_slp_instance (vec_info *vinfo,
static bool
vect_build_slp_instance (vec_info *vinfo,
slp_instance_kind kind,
vec<stmt_vec_info> scalar_stmts,
vec<stmt_vec_info> &scalar_stmts,
stmt_vec_info root_stmt_info,
unsigned max_tree_size,
scalar_stmts_to_slp_tree_map_t *bst_map,