mirror of
https://gcc.gnu.org/git/gcc.git
synced 2024-11-27 22:03:57 +08:00
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:
parent
3a008b1d12
commit
1746681c3c
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user