Branch: Tag:

2016-01-14

2016-01-14 14:49:17 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Compiler: Minor optimization.

There's no need to bounce types on the type stack to add references.

1824:    {    int id;    struct pike_type *type; -  push_finished_type($<n>0->u.sval.u.type); -  type = compiler_pop_type(); +  copy_pike_type(type, push_finished_type($<n>0->u.sval.u.type));    id = add_local_name($1->u.sval.u.string, type, 0);    if( type->type == PIKE_T_AUTO )    {
1845:    {    int id;    struct pike_type *type; -  push_finished_type($<n>0->u.sval.u.type); -  type=compiler_pop_type(); +  copy_pike_type(type, push_finished_type($<n>0->u.sval.u.type));    if( type->type == PIKE_T_AUTO && Pike_compiler->compiler_pass == 2)    {    free_type( type );