Set name for is_varargs too.

This commit is contained in:
Dale Weiler 2014-07-31 13:13:43 -04:00
parent 823b053e60
commit d5690074e1

View file

@ -4669,6 +4669,7 @@ static ast_value *parse_parameter_list(parser_t *parser, ast_value *var)
}
if (parser->tok == TOKEN_IDENT) {
argcounter = util_strdup(parser_tokval(parser));
ast_value_set_name(param, argcounter);
if (!parser_next(parser) || parser->tok != ')') {
parseerror(parser, "`...` must be the last parameter of a variadic function declaration");
goto on_error;