re PR middle-end/70239 (ICE in ggc_set_mark)

PR middle-end/70239
	* tree-ssa-sccvn.c (VN_INFO_GET): Use safe_grow_cleared instead
	of safe_grow.

From-SVN: r234221
This commit is contained in:
Jakub Jelinek 2016-03-15 17:10:59 +01:00 committed by Jakub Jelinek
parent 8be119c16e
commit 511e5c4889
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2016-03-15 Jakub Jelinek <jakub@redhat.com>
PR middle-end/70239
* tree-ssa-sccvn.c (VN_INFO_GET): Use safe_grow_cleared instead
of safe_grow.
2016-03-15 Andrey Belevantsev <abel@ispras.ru>
PR rtl-optimization/69032

View File

@ -407,7 +407,7 @@ VN_INFO_GET (tree name)
newinfo = XOBNEW (&vn_ssa_aux_obstack, struct vn_ssa_aux);
memset (newinfo, 0, sizeof (struct vn_ssa_aux));
if (SSA_NAME_VERSION (name) >= vn_ssa_aux_table.length ())
vn_ssa_aux_table.safe_grow (SSA_NAME_VERSION (name) + 1);
vn_ssa_aux_table.safe_grow_cleared (SSA_NAME_VERSION (name) + 1);
vn_ssa_aux_table[SSA_NAME_VERSION (name)] = newinfo;
return newinfo;
}