]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - gcc/cp/decl.c
vec: add exact argument for various grow functions.
[thirdparty/gcc.git] / gcc / cp / decl.c
index 5e17e4dc4b1626201cf90a259aa93c159ad953d9..4c84f2d0a9bebb2d1b457cc1db010f8a89f2e1ba 100644 (file)
@@ -8214,7 +8214,7 @@ cp_maybe_mangle_decomp (tree decl, tree first, unsigned int count)
       && TREE_STATIC (decl))
     {
       auto_vec<tree, 16> v;
-      v.safe_grow (count);
+      v.safe_grow (count, true);
       tree d = first;
       for (unsigned int i = 0; i < count; i++, d = DECL_CHAIN (d))
        v[count - i - 1] = d;
@@ -8274,7 +8274,7 @@ cp_finish_decomp (tree decl, tree first, unsigned int count)
     }
 
   auto_vec<tree, 16> v;
-  v.safe_grow (count);
+  v.safe_grow (count, true);
   tree d = first;
   for (unsigned int i = 0; i < count; i++, d = DECL_CHAIN (d))
     {