Commit 556ae9e9 authored by Matthias Braun's avatar Matthias Braun
Browse files

garbage_collect: need to follow aliases while marking

parent 6e0245be
......@@ -84,6 +84,11 @@ static void visit_entity(ir_entity *entity)
if (irg != NULL)
start_visit_node(get_irg_end(irg));
}
if (is_alias_entity(entity)) {
ir_entity *aliased = get_entity_alias(entity);
visit_entity(aliased);
}
}
static void visit_segment(ir_type *segment)
......
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