tree-optimization/96037 - fix uninitialized use of slp_op

The following avoids leaving slp_def as passed to vect_is_simple_use
by reference uninitialized.

2020-07-03  Richard Biener  <rguenther@suse.de>

	PR tree-optimization/96037
	* tree-vect-stmts.c (vect_is_simple_use): Initialize *slp_def.
This commit is contained in:
Richard Biener 2020-07-03 12:50:37 +02:00
parent 9bc2c2347d
commit 59cc32acc8

View file

@ -11238,6 +11238,7 @@ vect_is_simple_use (vec_info *vinfo, stmt_vec_info stmt, slp_tree slp_node,
}
else
{
*slp_def = NULL;
if (gassign *ass = dyn_cast <gassign *> (stmt->stmt))
{
if (gimple_assign_rhs_code (ass) == COND_EXPR