Remove the unnecessary special case for __alignof__(function) from alignof_to_firm().
authorChristoph Mallon <christoph.mallon@gmx.de>
Sat, 5 May 2012 06:26:23 +0000 (08:26 +0200)
committerChristoph Mallon <christoph.mallon@gmx.de>
Sat, 5 May 2012 21:09:54 +0000 (23:09 +0200)
Functions have the "right" alignment set.

ast2firm.c

index b12ac8c..741954a 100644 (file)
@@ -2962,12 +2962,7 @@ static ir_node *alignof_to_firm(const typeprop_expression_t *expression)
        if (tp_expression != NULL) {
                entity_t *entity = get_expression_entity(tp_expression);
                if (entity != NULL) {
-                       if (entity->kind == ENTITY_FUNCTION) {
-                               /* a gnu-extension */
-                               alignment = 1;
-                       } else {
-                               alignment = get_cparser_entity_alignment(entity);
-                       }
+                       alignment = get_cparser_entity_alignment(entity);
                }
        }