summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorManuel Mohr <manuel.mohr@kit.edu>2016-12-22 13:31:33 +0100
committerManuel Mohr <manuel.mohr@kit.edu>2016-12-22 13:31:33 +0100
commit150b6c48412de4b747549d1eb10df3c090a27732 (patch)
tree3ac402776d6c76089f9bcff6768adea5dbbcab4a /src
parent4ebb0b84f0dd76e8c504b8190916ad9a02dcb306 (diff)
Mark method types of functions with unspecified parameters as variadic.
Diffstat (limited to 'src')
-rw-r--r--src/firm/ast2firm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/firm/ast2firm.c b/src/firm/ast2firm.c
index 34e9af7..280e9f7 100644
--- a/src/firm/ast2firm.c
+++ b/src/firm/ast2firm.c
@@ -298,7 +298,7 @@ static ir_type *create_method_type(const function_type_t *function_type)
type_t *const return_type = skip_typeref(function_type->return_type);
int const n_parameters = count_parameters(function_type);
int const n_results = is_type_void(return_type) ? 0 : 1;
- bool const is_variadic = function_type->variadic;
+ bool const is_variadic = function_type->variadic || function_type->unspecified_parameters;
unsigned const cc = determine_calling_convention(function_type);
ir_type *const irtype = new_type_method(n_parameters, n_results, is_variadic, cc, props);
type_dbg_info *const dbgi = get_type_dbg_info_((const type_t*) function_type);