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