Use variables more consistently.
authorChristoph Mallon <christoph.mallon@gmx.de>
Sat, 4 Jun 2011 12:44:22 +0000 (14:44 +0200)
committerChristoph Mallon <christoph.mallon@gmx.de>
Sat, 4 Jun 2011 12:44:22 +0000 (14:44 +0200)
parser.c

index c4883b5..73c6a63 100644 (file)
--- 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);