don't mark functions without prototype as variadic
authorMatthias Braun <matze@braunis.de>
Thu, 14 May 2009 22:24:21 +0000 (22:24 +0000)
committerMatthias Braun <matze@braunis.de>
Thu, 14 May 2009 22:24:21 +0000 (22:24 +0000)
[r25963]

ast2firm.c

index 5ab49ec..24f4d1a 100644 (file)
@@ -380,7 +380,7 @@ static ir_type *create_method_type(const function_type_t *function_type, bool fo
                ++n;
        }
 
-       bool is_variadic = function_type->variadic || function_type->unspecified_parameters;
+       bool is_variadic = function_type->variadic;
 
        if (is_variadic)
                set_method_variadicity(irtype, variadicity_variadic);