aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2019-11-21 15:59:20 +0100
committerJan Hubicka <hubicka@gcc.gnu.org>2019-11-21 14:59:20 +0000
commit9c572192f0019c3dec3ef8c00c00c809e355820f (patch)
treed138ec871b7a1ac3c596ddb041c7fd60ae84eea3 /gcc
parentb0d5547612f08d7112d9284a7b5a862df3373570 (diff)
downloadgcc-9c572192f0019c3dec3ef8c00c00c809e355820f.zip
gcc-9c572192f0019c3dec3ef8c00c00c809e355820f.tar.gz
gcc-9c572192f0019c3dec3ef8c00c00c809e355820f.tar.bz2
Fix previous commit.
* ipa-prop.h (ipa_release_agg_values): Add parameter RELEASE_VECTOR. From-SVN: r278554
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog1
-rw-r--r--gcc/ipa-prop.h6
2 files changed, 5 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 34820c3..063cc01 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -13,6 +13,7 @@
* ipa-cp.c (ipa_get_indirect_edge_target_1): Do not early exit when
values are not known.
(ipa_release_agg_values): Add option to not release vector itself.
+ * ipa-prop.h (ipa_release_agg_values): Add parameter RELEASE_VECTOR.
2019-11-21 Richard Biener <rguenther@suse.de>
diff --git a/gcc/ipa-prop.h b/gcc/ipa-prop.h
index 9e85ef8..e9d6a5e 100644
--- a/gcc/ipa-prop.h
+++ b/gcc/ipa-prop.h
@@ -264,14 +264,16 @@ ipa_copy_agg_values (const vec<ipa_agg_value_set> &aggs)
whole vector. */
static inline void
-ipa_release_agg_values (vec<ipa_agg_value_set> &aggs)
+ipa_release_agg_values (vec<ipa_agg_value_set> &aggs,
+ bool release_vector = true)
{
ipa_agg_value_set *agg;
int i;
FOR_EACH_VEC_ELT (aggs, i, agg)
agg->release ();
- aggs.release ();
+ if (release_vector)
+ aggs.release ();
}
/* Information about zero/non-zero bits. */