Commit 33c44746 authored by Michael Beck's avatar Michael Beck
Browse files

- do not kick inner functions from the frame type

[r25271]
parent 87106caf
......@@ -87,7 +87,8 @@ void opt_frame_irg(ir_graph *irg) {
list = NULL;
for (i = n - 1; i >= 0; --i) {
ent = get_class_member(frame_tp, i);
if (get_entity_link(ent) == NULL) {
/* beware of inner functions: those are NOT unused */
if (get_entity_link(ent) == NULL && !is_method_entity(ent)) {
set_entity_link(ent, list);
list = ent;
}
......
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