From: Jeff Law Date: Thu, 8 Oct 2015 23:19:35 +0000 (-0600) Subject: [PATCH] [4/n] Fix minor SSA_NAME leaks X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=716e92f4545a714958b68588c6f230f235ec22c0;p=gcc.git [PATCH] [4/n] Fix minor SSA_NAME leaks * tree-ssa-loop-im.c (rewrite_bittest): Add missing call to release_defs. From-SVN: r228627 --- diff --git a/gcc/tree-ssa-loop-im.c b/gcc/tree-ssa-loop-im.c index 9b2436f56b0..603e6d49d51 100644 --- a/gcc/tree-ssa-loop-im.c +++ b/gcc/tree-ssa-loop-im.c @@ -983,7 +983,9 @@ rewrite_bittest (gimple_stmt_iterator *bsi) rsi = *bsi; gsi_insert_before (bsi, stmt1, GSI_NEW_STMT); gsi_insert_before (&rsi, stmt2, GSI_SAME_STMT); + gimple *to_release = gsi_stmt (rsi); gsi_remove (&rsi, true); + release_defs (to_release); return stmt1; }