tree-optimization/98192 - fix double free in SLP
authorRichard Biener <rguenther@suse.de>
Tue, 8 Dec 2020 11:54:48 +0000 (12:54 +0100)
committerRichard Biener <rguenther@suse.de>
Tue, 8 Dec 2020 11:56:44 +0000 (12:56 +0100)
commit1746681c3c167adafb7c0a30978dc2ca96144121
treefbb6bf262f38b273ca718e64e054546ebec7427f
parent3a008b1d124bef50bd7ae12106c90c3230eb2d57
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.
gcc/tree-vect-slp.c