Commit 7af9b2ff by Jeff Law Committed by Jeff Law

[PATCH] [3/n] Fix minor SSA_NAME leaks

	* tree-stdarg.c (expand_ifn_va_arg_1): Add missing call to
	unlink_stmt_vdef and release_ssa_name_fn.

From-SVN: r228625
parent d8bf7dce
2015-10-08 Jeff Law <law@redhat.com> 2015-10-08 Jeff Law <law@redhat.com>
* tree-stdarg.c (expand_ifn_va_arg_1): Add missing call to
unlink_stmt_vdef and release_ssa_name_fn.
* tree-ssa-dse.c (dse_optimize_stmt): Add missing call to * tree-ssa-dse.c (dse_optimize_stmt): Add missing call to
release_defs. release_defs.
...@@ -1080,6 +1080,8 @@ expand_ifn_va_arg_1 (function *fun) ...@@ -1080,6 +1080,8 @@ expand_ifn_va_arg_1 (function *fun)
/* Remove the IFN_VA_ARG gimple_call. It's the last stmt in the /* Remove the IFN_VA_ARG gimple_call. It's the last stmt in the
bb. */ bb. */
unlink_stmt_vdef (stmt);
release_ssa_name_fn (fun, gimple_vdef (stmt));
gsi_remove (&i, true); gsi_remove (&i, true);
gcc_assert (gsi_end_p (i)); gcc_assert (gsi_end_p (i));
......
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