- BugFix: function types have not size 0, so condition must be changed
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Sun, 31 Aug 2008 11:35:31 +0000 (11:35 +0000)
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Sun, 31 Aug 2008 11:35:31 +0000 (11:35 +0000)
[r21580]

ast2firm.c

index 09f48fd..6ef6879 100644 (file)
@@ -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;
        }