builtins are generally not declared const, so don't expect CV_CONST, otherwise we write out va_count for builtin calls as well...

This commit is contained in:
Wolfgang Bumiller 2013-01-12 13:52:42 +01:00
parent c10d127fd7
commit 1861660585

View file

@ -1426,7 +1426,7 @@ static bool parser_close_call(parser_t *parser, shunt *sy)
if (ast_istype(fun, ast_value)) {
funval = (ast_value*)fun;
if ((fun->expression.flags & AST_FLAG_VARIADIC) &&
!(funval->cvq == CV_CONST && funval->hasvalue && funval->constval.vfunc->builtin))
!(/*funval->cvq == CV_CONST && */ funval->hasvalue && funval->constval.vfunc->builtin))
{
size_t va_count;
if (paramcount < vec_size(fun->expression.params))