]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[PATCH] [3/n] Fix minor SSA_NAME leaks
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 8 Oct 2015 20:47:46 +0000 (20:47 +0000)
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 8 Oct 2015 20:47:46 +0000 (20:47 +0000)
* tree-stdarg.c (expand_ifn_va_arg_1): Add missing call to
unlink_stmt_vdef and release_ssa_name_fn.

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

gcc/ChangeLog
gcc/tree-stdarg.c

index 64309c19900635be60ba451772fc1dfa004561d7..31e2f3000c01c8453082da2ff74c1a04ab751d97 100644 (file)
@@ -1,5 +1,8 @@
 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
        release_defs.
 
index d69fa06049706d5ea9eb84a6a47324a865fe29c2..3e6d98c686ce8549cf68299c5362c53756cc7f3e 100644 (file)
@@ -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
           bb.  */
+       unlink_stmt_vdef (stmt);
+       release_ssa_name_fn (fun, gimple_vdef (stmt));
        gsi_remove (&i, true);
        gcc_assert (gsi_end_p (i));