]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
PR middle-end/70239
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 15 Mar 2016 16:10:59 +0000 (16:10 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 15 Mar 2016 16:10:59 +0000 (16:10 +0000)
* tree-ssa-sccvn.c (VN_INFO_GET): Use safe_grow_cleared instead
of safe_grow.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234221 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/tree-ssa-sccvn.c

index de099d671b28d475c11d0388e2110031dfa24897..9aa11bec8c3e1d722c75274996296f47c8b44a35 100644 (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
index 1c237a4ec4bae92dac30345b4abc9847d80934d5..8a5b641a70e3cedc899b7174812cb39b48960f57 100644 (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;
 }