Commit ff5e0d82 authored by Matthias Braun's avatar Matthias Braun
Browse files

disable load from static const optimisation for new-style initializers (until...

disable load from static const optimisation for new-style initializers (until we have code for that)

[r21118]
parent 4567d92a
...@@ -782,7 +782,7 @@ static unsigned optimize_load(ir_node *load) ...@@ -782,7 +782,7 @@ static unsigned optimize_load(ir_node *load)
} else { } else {
compound_graph_path *path = get_accessed_path(ptr); compound_graph_path *path = get_accessed_path(ptr);
if (path) { if (path && !ent->has_initializer) {
ir_node *c; ir_node *c;
assert(is_proper_compound_graph_path(path, get_compound_graph_path_length(path)-1)); assert(is_proper_compound_graph_path(path, get_compound_graph_path_length(path)-1));
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment