diff options
Diffstat (limited to 'gcc/cp/decl.c')
-rw-r--r-- | gcc/cp/decl.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c index b9f3ea8..3905196 100644 --- a/gcc/cp/decl.c +++ b/gcc/cp/decl.c @@ -5542,16 +5542,15 @@ initialize_local_var (tree decl, tree init) /* DECL is a VAR_DECL for a compiler-generated variable with static storage duration (like a virtual table) whose initializer is a - compile-time constant. INIT must be either a TREE_LIST of values, - or a CONSTRUCTOR. Initialize the variable and provide it to the + compile-time constant. Initialize the variable and provide it to the back end. */ void -initialize_artificial_var (tree decl, tree init) +initialize_artificial_var (tree decl, VEC(constructor_elt,gc) *v) { + tree init; gcc_assert (DECL_ARTIFICIAL (decl)); - if (TREE_CODE (init) == TREE_LIST) - init = build_constructor_from_list (TREE_TYPE (decl), init); + init = build_constructor (TREE_TYPE (decl), v); gcc_assert (TREE_CODE (init) == CONSTRUCTOR); DECL_INITIAL (decl) = init; DECL_INITIALIZED_P (decl) = 1; |