]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[PATCH] [6/n] Fix minor SSA_NAME leaks
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 9 Oct 2015 16:34:00 +0000 (16:34 +0000)
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 9 Oct 2015 16:34:00 +0000 (16:34 +0000)
* tree-vect-stmts.c (free_stmt_vec_info): Free the LHS of the
correct statement.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@228663 138bc75d-0d04-0410-961f-82ee72b054a4

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);