From 014c800ee539e1dc6fa4a80981d804a463ed5fad Mon Sep 17 00:00:00 2001 From: Christoph Mallon Date: Sun, 18 Nov 2007 11:37:02 +0000 Subject: [PATCH] Also count arrays as local variables, because parameters can be declared in array style. [r18479] --- ast2firm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ast2firm.c b/ast2firm.c index f5e7a5b..19a2fdd 100644 --- a/ast2firm.c +++ b/ast2firm.c @@ -2061,6 +2061,7 @@ static int count_local_declarations(const declaration_t * decl, for (; decl != end; decl = decl->next) { const type_t *type = skip_typeref(decl->type); switch (type->type) { + case TYPE_ARRAY: /* HACK for parameters declared in array style */ case TYPE_ATOMIC: case TYPE_ENUM: case TYPE_POINTER: -- 2.20.1