From: Christoph Mallon Date: Sat, 4 Jun 2011 12:44:22 +0000 (+0200) Subject: Use variables more consistently. X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=1c4466f3b10ff840991a8089d12e90182aa3c803;p=cparser Use variables more consistently. --- diff --git a/parser.c b/parser.c index c4883b5..73c6a63 100644 --- a/parser.c +++ b/parser.c @@ -7595,16 +7595,16 @@ static expression_t *parse_call_expression(expression_t *expression) = create_implicit_cast(argument->expression, type); } - check_format(&result->call); + check_format(call); if (warning.aggregate_return && is_type_compound(skip_typeref(function_type->return_type))) { - warningf(&result->base.source_position, + warningf(&expression->base.source_position, "function call has aggregate value"); } - if (call->function->kind == EXPR_REFERENCE) { - reference_expression_t *reference = &call->function->reference; + if (expression->kind == EXPR_REFERENCE) { + reference_expression_t *reference = &expression->reference; if (reference->entity->kind == ENTITY_FUNCTION && reference->entity->function.btk != bk_none) handle_builtin_argument_restrictions(call);