From 69d5c744f683bd73ceaac40309ccd7db34389f33 Mon Sep 17 00:00:00 2001 From: Michael Beck Date: Sun, 31 Aug 2008 11:35:31 +0000 Subject: [PATCH] - BugFix: function types have not size 0, so condition must be changed [r21580] --- ast2firm.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ast2firm.c b/ast2firm.c index 09f48fd..6ef6879 100644 --- a/ast2firm.c +++ b/ast2firm.c @@ -2152,9 +2152,8 @@ static ir_node *adjust_for_pointer_arithmetic(dbg_info *dbgi, unsigned elem_size = get_type_size_const(points_to); /* gcc extension: allow arithmetic with void * and function * */ - if (elem_size == 0 && - (is_type_atomic(points_to, ATOMIC_TYPE_VOID) || - is_type_function(points_to))) { + if ((elem_size == 0 && is_type_atomic(points_to, ATOMIC_TYPE_VOID)) || + is_type_function(points_to)) { elem_size = 1; } -- 2.20.1