Commit 511e5c48 by Jakub Jelinek Committed by Jakub Jelinek

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
parent 8be119c1
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
......
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment