From 7532abf27b205c73ffc29ea7b724b40ff3bce461 Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Fri, 9 Oct 2015 10:34:00 -0600 Subject: [PATCH] [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 --- gcc/ChangeLog | 5 +++++ gcc/tree-vect-stmts.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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); -- 2.30.2