X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ast2firm.c;h=d9cf3f5212423a67ce27d265a73b8ff2a77f4348;hb=c080804a9ae61e4ba0ec6fc7288c81c326fa9ddb;hp=0d0d4d76be8fb80218a96885db527f4a9b0c0f0a;hpb=065dde5889a8a9bad316c3402e203292a5c6d184;p=cparser diff --git a/ast2firm.c b/ast2firm.c index 0d0d4d7..d9cf3f5 100644 --- a/ast2firm.c +++ b/ast2firm.c @@ -3214,9 +3214,7 @@ static ir_node *va_start_expression_to_firm( { ir_entity *param_ent = current_vararg_entity; if (param_ent == NULL) { - type_t *const type = current_function_entity->declaration.type; - ir_type *const method_type = get_ir_type(type); - size_t const n = get_method_n_params(method_type); + size_t const n = IR_VA_START_PARAMETER_NUMBER; ir_type *const frame_type = get_irg_frame_type(current_ir_graph); ir_type *const param_type = get_unknown_type(); param_ent = new_parameter_entity(frame_type, n, param_type);