From: Jeff Law Date: Fri, 9 Oct 2015 16:34:00 +0000 (-0600) Subject: [PATCH] [6/n] Fix minor SSA_NAME leaks X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7532abf27b205c73ffc29ea7b724b40ff3bce461;p=gcc.git [PATCH] [6/n] Fix minor SSA_NAME leaks * tree-vect-stmts.c (free_stmt_vec_info): Free the LHS of the correct statement. From-SVN: r228663 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 932253da4c1..07195e5db0e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2015-10-09 Jeff Law + + * tree-vect-stmts.c (free_stmt_vec_info): Free the LHS of the + correct statement. + 2015-10-09 Renlin Li * config/arm/neon.md (neon_vuzp_insn): Add & modifier for diff --git a/gcc/tree-vect-stmts.c b/gcc/tree-vect-stmts.c index 8961dda6c06..0073ddb56a4 100644 --- a/gcc/tree-vect-stmts.c +++ b/gcc/tree-vect-stmts.c @@ -8075,7 +8075,7 @@ free_stmt_vec_info (gimple *stmt) { gimple *seq_stmt = gsi_stmt (si); gimple_set_bb (seq_stmt, NULL); - lhs = gimple_get_lhs (patt_stmt); + lhs = gimple_get_lhs (seq_stmt); if (TREE_CODE (lhs) == SSA_NAME) release_ssa_name (lhs); free_stmt_vec_info (seq_stmt);