mirror of
https://github.com/odin-lang/Odin.git
synced 2026-07-25 00:40:26 +00:00
Only allow direct CVarArg usage in c_va_start
This commit is contained in:
@@ -765,8 +765,10 @@ gb_internal bool check_builtin_c_procedure(CheckerContext *c, Operand *operand,
|
||||
return false;
|
||||
}
|
||||
|
||||
c->allow_c_vararg_param = true;
|
||||
Operand args = {};
|
||||
check_expr(c, &args, ce->args[1]);
|
||||
c->allow_c_vararg_param = false;
|
||||
if (list.mode == Addressing_Invalid) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user