cleanup
authorAndreas Zwinkau <zwinkau@kit.edu>
Tue, 16 Aug 2011 12:29:38 +0000 (14:29 +0200)
committerAndreas Zwinkau <zwinkau@kit.edu>
Tue, 16 Aug 2011 12:29:38 +0000 (14:29 +0200)
ir/opt/ldstopt.c

index de2e460..0416d5a 100644 (file)
@@ -1168,7 +1168,7 @@ static unsigned optimize_load(ir_node *load)
                        }
 
                        if (get_entity_linkage(ent) & IR_LINKAGE_CONSTANT) {
-                               if (ent->initializer != NULL) {
+                               if (has_entity_initializer(ent)) {
                                        /* new style initializer */
                                        value = find_compound_ent_value(ptr);
                                } else if (entity_has_compound_ent_values(ent)) {