diff options
Diffstat (limited to 'gcc/builtins.c')
-rw-r--r-- | gcc/builtins.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gcc/builtins.c b/gcc/builtins.c index 096fec6..3b9ca5a 100644 --- a/gcc/builtins.c +++ b/gcc/builtins.c @@ -11526,9 +11526,7 @@ fold_builtin_next_arg (tree exp, bool va_start_p) int nargs = call_expr_nargs (exp); tree arg; - if (TYPE_ARG_TYPES (fntype) == 0 - || (TREE_VALUE (tree_last (TYPE_ARG_TYPES (fntype))) - == void_type_node)) + if (!stdarg_p (fntype)) { error ("%<va_start%> used in function with fixed args"); return true; |