From 59cc32acc8dde3b8719b9b4f90d33e8c3e3f17bb Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Fri, 3 Jul 2020 12:50:37 +0200 Subject: [PATCH] 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. --- gcc/tree-vect-stmts.c | 1 + 1 file changed, 1 insertion(+) 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 -- 2.30.2