tree-optimization/95403 - guard vect_init_vector_1 against NULL stmt_info
authorRichard Biener <rguenther@suse.de>
Fri, 29 May 2020 08:16:38 +0000 (10:16 +0200)
committerRichard Biener <rguenther@suse.de>
Fri, 29 May 2020 09:02:29 +0000 (11:02 +0200)
commit233ecb5e2c5a769429279afbbf7d275cb3940cde
treed3c60cd9288e90d6d485a42ffbb3454f7ffa309c
parent3d0675f3bb54b58903bc9214d05c8e6d20e5f313
tree-optimization/95403 - guard vect_init_vector_1 against NULL stmt_info

2020-05-29  Richard Biener  <rguenther@suse.de>

PR tree-optimization/95403
* tree-vect-stmts.c (vect_init_vector_1): Guard against NULL
stmt_vinfo.

* gfortran.dg/vect/pr95403.f: New testcase.
gcc/testsuite/gfortran.dg/vect/pr95403.f [new file with mode: 0644]
gcc/tree-vect-stmts.c