Message ID | 20100809125950.GK4130@codesourcery.com |
---|---|
State | New |
Headers | show |
Nathan Froyd wrote: > gcc/cp/ > * tree.c (varargs_function_p): Use stdarg_p. OK.
diff --git a/gcc/cp/tree.c b/gcc/cp/tree.c index 5441448..af5a82f 100644 --- a/gcc/cp/tree.c +++ b/gcc/cp/tree.c @@ -2284,11 +2284,7 @@ error_type (tree arg) int varargs_function_p (const_tree function) { - const_tree parm = TYPE_ARG_TYPES (TREE_TYPE (function)); - for (; parm; parm = TREE_CHAIN (parm)) - if (TREE_VALUE (parm) == void_type_node) - return 0; - return 1; + return stdarg_p (TREE_TYPE (function)); } /* Returns 1 if decl is a member of a class. */