From ff5e0d82455a9144455da9dcb45ed9ee054748fb Mon Sep 17 00:00:00 2001 From: Matthias Braun Date: Tue, 12 Aug 2008 11:28:40 +0000 Subject: [PATCH] disable load from static const optimisation for new-style initializers (until we have code for that) [r21118] --- 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 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)); -- 2.20.1