vr-values.c (vr_values::vr_values): Initialize to_remove_edges and to_update_switch_s...
authorJakub Jelinek <jakub@redhat.com>
Tue, 25 Sep 2018 13:18:06 +0000 (15:18 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 25 Sep 2018 13:18:06 +0000 (15:18 +0200)
* vr-values.c (vr_values::vr_values): Initialize to_remove_edges and
to_update_switch_stmts to vNULL instead of calling create on them
immediately.

From-SVN: r264567

gcc/ChangeLog
gcc/vr-values.c

index b81172f2900987b74e63f0e00520c329d9e4bd97..a92e935781e654299d52414c1ebd875970ec98b4 100644 (file)
@@ -1,3 +1,9 @@
+2018-09-25  Jakub Jelinek  <jakub@redhat.com>
+
+       * vr-values.c (vr_values::vr_values): Initialize to_remove_edges and
+       to_update_switch_stmts to vNULL instead of calling create on them
+       immediately.
+
 2018-09-25  Richard Biener  <rguenther@suse.de>
 
        PR tree-optimization/87402
index 6b6a91811f8367fece055a41b15dc4ae3c68896a..32392a11618dfd30fd4369c769dc890f4e702dbc 100644 (file)
@@ -1919,8 +1919,8 @@ vr_values::vr_values () : vrp_value_range_pool ("Tree VRP value ranges")
   vr_value = XCNEWVEC (value_range *, num_vr_values);
   vr_phi_edge_counts = XCNEWVEC (int, num_ssa_names);
   bitmap_obstack_initialize (&vrp_equiv_obstack);
-  to_remove_edges.create (10);
-  to_update_switch_stmts.create (5);
+  to_remove_edges = vNULL;
+  to_update_switch_stmts = vNULL;
 }
 
 /* Free VRP lattice.  */