aboutsummaryrefslogtreecommitdiff
path: root/gcc/ipa-prop.h
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2015-11-09 16:47:01 +0100
committerMartin Liska <marxin@gcc.gnu.org>2015-11-09 15:47:01 +0000
commitc34311917ff87b75ea589afff6868437fc53c001 (patch)
treeee35222d10eb23fd0c96ddb2b91ecec097a19a90 /gcc/ipa-prop.h
parentaf121e828eb03233d731b25b590d1f7c5dd2693d (diff)
Fix memory leaks in IPA.
* ipa-inline-analysis.c (estimate_function_body_sizes): Call body_info release function. * ipa-prop.c (ipa_release_body_info): New function. (ipa_analyze_node): Call the function. (ipa_node_params::~ipa_node_params): Release known_csts. * ipa-prop.h (ipa_release_body_info): Declare. From-SVN: r230028
Diffstat (limited to 'gcc/ipa-prop.h')
-rw-r--r--gcc/ipa-prop.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/ipa-prop.h b/gcc/ipa-prop.h
index b69ee8ab745..2fe824d35cf 100644
--- a/gcc/ipa-prop.h
+++ b/gcc/ipa-prop.h
@@ -775,7 +775,7 @@ bool ipa_modify_expr (tree *, bool, ipa_parm_adjustment_vec);
ipa_parm_adjustment *ipa_get_adjustment_candidate (tree **, bool *,
ipa_parm_adjustment_vec,
bool);
-
+void ipa_release_body_info (struct ipa_func_body_info *);
/* From tree-sra.c: */
tree build_ref_for_offset (location_t, tree, HOST_WIDE_INT, bool, tree,