Commit a291ed6d by Rafael Avila de Espindola Committed by Rafael Espindola

ipa-struct-reorg.c (create_new_alloc_sites): Properly insert the newly created statements.

2008-10-22 Rafael Espindola  <espindola@google.com>

	* ipa-struct-reorg.c (create_new_alloc_sites): Properly insert the
	newly created statements.

From-SVN: r141293
parent b36c386c
2008-10-22 Rafael Espindola <espindola@google.com>
* ipa-struct-reorg.c (create_new_alloc_sites): Properly insert the
newly created statements.
2008-10-22 Kaz Kojima <kkojima@gcc.gnu.org> 2008-10-22 Kaz Kojima <kkojima@gcc.gnu.org>
PR target/37633 PR target/37633
......
...@@ -2114,8 +2114,9 @@ create_new_alloc_sites (fallocs_t m_data, tree context) ...@@ -2114,8 +2114,9 @@ create_new_alloc_sites (fallocs_t m_data, tree context)
num = gen_num_of_structs_in_malloc (stmt, str->decl, &new_stmts); num = gen_num_of_structs_in_malloc (stmt, str->decl, &new_stmts);
if (new_stmts) if (new_stmts)
{ {
last_stmt = gimple_seq_last_stmt (new_stmts); gimple last_stmt_tmp = gimple_seq_last_stmt (new_stmts);
insert_seq_after_stmt (last_stmt, new_stmts); insert_seq_after_stmt (last_stmt, new_stmts);
last_stmt = last_stmt_tmp;
} }
/* Generate an allocation sites for each new structure type. */ /* Generate an allocation sites for each new structure type. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment