From d02c08cb15612969e3ad224111a84fb70aa1ab92 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Tue, 25 Sep 2018 15:18:06 +0200 Subject: [PATCH] vr-values.c (vr_values::vr_values): Initialize to_remove_edges and to_update_switch_stmts to vNULL instead of... * 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 | 6 ++++++ gcc/vr-values.c | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b81172f2900..a92e935781e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2018-09-25 Jakub Jelinek + + * 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 PR tree-optimization/87402 diff --git a/gcc/vr-values.c b/gcc/vr-values.c index 6b6a91811f8..32392a11618 100644 --- a/gcc/vr-values.c +++ b/gcc/vr-values.c @@ -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. */ -- 2.30.2