From 762b472fc81c73cf7a1b0041b8cd286b7206d79d Mon Sep 17 00:00:00 2001 From: Andreas Zwinkau Date: Tue, 16 Aug 2011 14:29:38 +0200 Subject: [PATCH] cleanup --- ir/opt/ldstopt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) { -- 2.20.1