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.
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,