if (self->varargs) {
if (!ast_local_codegen(self->varargs, self->ir_func, true))
return false;
+ irf->max_varargs = self->varargs->expression.count;
}
if (self->builtin) {
self->values = NULL;
self->locals = NULL;
+ self->max_varargs = NULL;
+
self->code_function_def = -1;
self->allocated_locals = 0;
self->globaltemps = 0;
size_t run_id;
struct ir_builder_s *owner;
+
+ /* vararg support: */
+ size_t max_varargs;
} ir_function;
#define IR_FLAG_HAS_ARRAYS (1<<1)
#define IR_FLAG_HAS_UNINITIALIZED (1<<2)