projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
296e3ca
)
cleanup
author
Andreas Zwinkau
<zwinkau@kit.edu>
Tue, 16 Aug 2011 12:29:38 +0000
(14:29 +0200)
committer
Andreas Zwinkau
<zwinkau@kit.edu>
Tue, 16 Aug 2011 12:29:38 +0000
(14:29 +0200)
ir/opt/ldstopt.c
patch
|
blob
|
history
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)) {