aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/class.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/cp/class.c')
-rw-r--r--gcc/cp/class.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/cp/class.c b/gcc/cp/class.c
index b39bdaa..3479b82 100644
--- a/gcc/cp/class.c
+++ b/gcc/cp/class.c
@@ -9742,7 +9742,8 @@ build_vtbl_initializer (tree binfo,
{
int n_entries = vec_safe_length (vid.inits);
- vec_safe_grow (vid.inits, TARGET_VTABLE_DATA_ENTRY_DISTANCE * n_entries);
+ vec_safe_grow (vid.inits, TARGET_VTABLE_DATA_ENTRY_DISTANCE * n_entries,
+ true);
/* Move data entries into their new positions and add padding
after the new positions. Iterate backwards so we don't
@@ -9774,7 +9775,7 @@ build_vtbl_initializer (tree binfo,
order. Straighten them out and add them to the running list in one
step. */
jx = vec_safe_length (*inits);
- vec_safe_grow (*inits, jx + vid.inits->length ());
+ vec_safe_grow (*inits, jx + vid.inits->length (), true);
for (ix = vid.inits->length () - 1;
vid.inits->iterate (ix, &e);