From: Andreas Zwinkau Date: Tue, 16 Aug 2011 12:29:38 +0000 (+0200) Subject: cleanup X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=762b472fc81c73cf7a1b0041b8cd286b7206d79d;p=libfirm cleanup --- diff --git a/ir/opt/ldstopt.c b/ir/opt/ldstopt.c index de2e4608c..0416d5ac6 100644 --- a/ir/opt/ldstopt.c +++ b/ir/opt/ldstopt.c @@ -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)) {