From: Matthias Braun Date: Tue, 12 Aug 2008 11:28:40 +0000 (+0000) Subject: disable load from static const optimisation for new-style initializers (until we... X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=ff5e0d82455a9144455da9dcb45ed9ee054748fb;p=libfirm disable load from static const optimisation for new-style initializers (until we have code for that) [r21118] --- diff --git a/ir/opt/ldstopt.c b/ir/opt/ldstopt.c index dcfc7392f..b67bafedd 100644 --- a/ir/opt/ldstopt.c +++ b/ir/opt/ldstopt.c @@ -782,7 +782,7 @@ static unsigned optimize_load(ir_node *load) } else { compound_graph_path *path = get_accessed_path(ptr); - if (path) { + if (path && !ent->has_initializer) { ir_node *c; assert(is_proper_compound_graph_path(path, get_compound_graph_path_length(path)-1));