]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Fix previous commit.
authorJan Hubicka <jh@suse.cz>
Thu, 21 Nov 2019 14:59:20 +0000 (15:59 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Thu, 21 Nov 2019 14:59:20 +0000 (14:59 +0000)
        * ipa-prop.h (ipa_release_agg_values): Add parameter RELEASE_VECTOR.

From-SVN: r278554

gcc/ChangeLog
gcc/ipa-prop.h

index 34820c33d2d8f4b452c20aa1f4c9741c1eaba980..063cc013aa08829aa9403bbbbd3cbff5c8f6e85c 100644 (file)
@@ -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>
 
index 9e85ef8aacea0c756d6ba5953772bdc9313b3216..e9d6a5e8305f1145876bc8a8795a751da38a84cf 100644 (file)
@@ -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.  */