(expand_builtin): Fix typo in previous patch
(allow __builtin_next_arg in varargs functions). From-SVN: r7164
This commit is contained in:
parent
7d91bb4ebf
commit
33162bebd8
|
@ -6912,10 +6912,10 @@ expand_builtin (exp, target, subtarget, mode, ignore)
|
||||||
{
|
{
|
||||||
tree fntype = TREE_TYPE (current_function_decl);
|
tree fntype = TREE_TYPE (current_function_decl);
|
||||||
|
|
||||||
if (TYPE_ARG_TYPES (fntype) == 0
|
if ((TYPE_ARG_TYPES (fntype) == 0
|
||||||
|| (TREE_VALUE (tree_last (TYPE_ARG_TYPES (fntype)))
|
|| (TREE_VALUE (tree_last (TYPE_ARG_TYPES (fntype)))
|
||||||
== void_type_node)
|
== void_type_node))
|
||||||
|| current_function_varargs)
|
&& ! current_function_varargs)
|
||||||
{
|
{
|
||||||
error ("`va_start' used in function with fixed args");
|
error ("`va_start' used in function with fixed args");
|
||||||
return const0_rtx;
|
return const0_rtx;
|
||||||
|
|
Loading…
Reference in New Issue