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:
parent
9bc2c2347d
commit
59cc32acc8
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue