public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r11-5847] tree-optimization/98192 - fix double free in SLP
@ 2020-12-08 11:56 Richard Biener
  0 siblings, 0 replies; only message in thread
From: Richard Biener @ 2020-12-08 11:56 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:1746681c3c167adafb7c0a30978dc2ca96144121

commit r11-5847-g1746681c3c167adafb7c0a30978dc2ca96144121
Author: Richard Biener <rguenther@suse.de>
Date:   Tue Dec 8 12:54:48 2020 +0100

    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.

Diff:
---
 gcc/tree-vect-slp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/tree-vect-slp.c b/gcc/tree-vect-slp.c
index 35e783505b4..d248ce2c3f7 100644
--- a/gcc/tree-vect-slp.c
+++ b/gcc/tree-vect-slp.c
@@ -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,


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-12-08 11:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-08 11:56 [gcc r11-5847] tree-optimization/98192 - fix double free in SLP Richard Biener

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).