public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
From: Richard Biener <rguenth@gcc.gnu.org>
To: gcc-cvs@gcc.gnu.org
Subject: [gcc r11-5847] tree-optimization/98192 - fix double free in SLP
Date: Tue,  8 Dec 2020 11:56:58 +0000 (GMT)	[thread overview]
Message-ID: <20201208115659.0338E385800F@sourceware.org> (raw)

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,


                 reply	other threads:[~2020-12-08 11:56 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20201208115659.0338E385800F@sourceware.org \
    --to=rguenth@gcc.gnu.org \
    --cc=gcc-cvs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).