projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
cleanup
[libfirm]
/
ir
/
opt
/
ldstopt.c
diff --git
a/ir/opt/ldstopt.c
b/ir/opt/ldstopt.c
index
de2e460
..
0416d5a
100644
(file)
--- 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)) {