summaryrefslogtreecommitdiffhomepage
path: root/ir/be/betranshlp.c
diff options
context:
space:
mode:
authorSebastian Buchwald <Sebastian.Buchwald@kit.edu>2015-05-22 12:11:00 +0200
committerSebastian Buchwald <Sebastian.Buchwald@kit.edu>2015-06-02 11:08:17 +0200
commitc740a32e10376ab718d475441b3f75741c6ffdc4 (patch)
tree9db318c26725918d1a2136a2ab4d312a4e1b01da /ir/be/betranshlp.c
parent621e1ef46ebd99532c75c15f365f99edd609d771 (diff)
Properly reserve and free link resource.
Diffstat (limited to 'ir/be/betranshlp.c')
-rw-r--r--ir/be/betranshlp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ir/be/betranshlp.c b/ir/be/betranshlp.c
index 96b2f17..8252919 100644
--- a/ir/be/betranshlp.c
+++ b/ir/be/betranshlp.c
@@ -312,7 +312,9 @@ void be_transform_graph(ir_graph *irg, arch_pretrans_nodes *func)
new_identities(irg);
/* do the main transformation */
+ ir_reserve_resources(irg, IR_RESOURCE_IRN_LINK);
transform_nodes(irg, func);
+ ir_free_resources(irg, IR_RESOURCE_IRN_LINK);
/* free the old obstack */
obstack_free(&old_obst, 0);