From: Richard Biener Date: Fri, 3 Jul 2020 10:50:37 +0000 (+0200) Subject: tree-optimization/96037 - fix uninitialized use of slp_op X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=59cc32acc8dde3b8719b9b4f90d33e8c3e3f17bb;p=gcc.git 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 PR tree-optimization/96037 * tree-vect-stmts.c (vect_is_simple_use): Initialize *slp_def. --- diff --git a/gcc/tree-vect-stmts.c b/gcc/tree-vect-stmts.c index 9228f9cde4a..f66c5f5b367 100644 --- a/gcc/tree-vect-stmts.c +++ b/gcc/tree-vect-stmts.c @@ -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 (stmt->stmt)) { if (gimple_assign_rhs_code (ass) == COND_EXPR