X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fopt%2Fopt_frame.c;h=1212540a3f11f2a2cd5d4465cc102a4a8b93dde2;hb=4b734653b3f11a3182963369bb58980e4d5a62cb;hp=9ef1abdbc84c41188e754584493a1780d42d4bec;hpb=0fbcef83aa6060534172bb13e71cdadb04428806;p=libfirm diff --git a/ir/opt/opt_frame.c b/ir/opt/opt_frame.c index 9ef1abdbc..1212540a3 100644 --- a/ir/opt/opt_frame.c +++ b/ir/opt/opt_frame.c @@ -47,6 +47,8 @@ void opt_frame_irg(ir_graph *irg) { if (n <= 0) return; + irp_reserve_resources(irp, IR_RESOURCE_ENTITY_LINK); + /* clear all entity links */ for (i = n - 1; i >= 0; --i) { ent = get_class_member(frame_tp, i); @@ -96,4 +98,5 @@ void opt_frame_irg(ir_graph *irg) { /* we changed the frame type, it's layout should be redefined */ set_type_state(frame_tp, layout_undefined); } + irp_free_resources(irp, IR_RESOURCE_ENTITY_LINK); }