Inliner must clear parameter flag of entities
authorAndreas Zwinkau <zwinkau@kit.edu>
Thu, 11 Aug 2011 14:12:31 +0000 (16:12 +0200)
committerAndreas Zwinkau <zwinkau@kit.edu>
Thu, 11 Aug 2011 14:12:31 +0000 (16:12 +0200)
ir/opt/opt_inline.c

index 0fdcec1..d405d14 100644 (file)
@@ -294,6 +294,8 @@ static void copy_frame_entities(ir_graph *from, ir_graph *to)
                ir_entity *old_ent = get_class_member(from_frame, i);
                ir_entity *new_ent = copy_entity_own(old_ent, to_frame);
                set_entity_link(old_ent, new_ent);
+               /* since the entity is inlined now, this is not a parameter entity */
+               new_ent->is_parameter = 0;
        }
 }