[PATCH] [6/n] Fix minor SSA_NAME leaks
authorJeff Law <law@redhat.com>
Fri, 9 Oct 2015 16:34:00 +0000 (10:34 -0600)
committerJeff Law <law@gcc.gnu.org>
Fri, 9 Oct 2015 16:34:00 +0000 (10:34 -0600)
* tree-vect-stmts.c (free_stmt_vec_info): Free the LHS of the
correct statement.

From-SVN: r228663

gcc/ChangeLog
gcc/tree-vect-stmts.c

index 932253da4c175bc877dfdcde099a12cccf2ebee4..07195e5db0e55e6c44afc4b161a28297ae2071a6 100644 (file)
@@ -1,3 +1,8 @@
+2015-10-09  Jeff Law  <law@redhat.com>
+
+       * tree-vect-stmts.c (free_stmt_vec_info): Free the LHS of the
+       correct statement.
+
 2015-10-09  Renlin Li  <renlin.li@arm.com>
 
        * config/arm/neon.md (neon_vuzp<mode>_insn): Add & modifier for
index 8961dda6c06bc836965c54f555e62aa3839fc821..0073ddb56a4c665051155adef91f8eff89093b28 100644 (file)
@@ -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);