diff options
Diffstat (limited to 'gcc/lto/lto-lang.c')
-rw-r--r-- | gcc/lto/lto-lang.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/lto/lto-lang.c b/gcc/lto/lto-lang.c index edfab74de0a..04664371e20 100644 --- a/gcc/lto/lto-lang.c +++ b/gcc/lto/lto-lang.c @@ -1061,11 +1061,11 @@ lto_getdecls (void) static void lto_write_globals (void) { - tree *vec = VEC_address (tree, lto_global_var_decls); - int len = VEC_length (tree, lto_global_var_decls); + tree *vec = lto_global_var_decls->address (); + int len = lto_global_var_decls->length (); wrapup_global_declarations (vec, len); emit_debug_global_declarations (vec, len); - VEC_free (tree, gc, lto_global_var_decls); + vec_free (lto_global_var_decls); } static tree @@ -1235,7 +1235,7 @@ lto_init (void) lto_register_canonical_types (global_trees[i]); /* Initialize LTO-specific data structures. */ - lto_global_var_decls = VEC_alloc (tree, gc, 256); + vec_alloc (lto_global_var_decls, 256); in_lto_p = true; return true; |