summaryrefslogtreecommitdiffhomepage
path: root/ir/be/TEMPLATE
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2015-12-30 13:29:31 +0100
committerMatthias Braun <matze@braunis.de>2015-12-30 13:29:34 +0100
commitf91f877299f124e8787539318406a5b692f2c139 (patch)
tree250a9128ff9db2516c9cb944e6c3fe127b2f07b0 /ir/be/TEMPLATE
parent74d89854b4a8902af746f5a62e07d65a289d3459 (diff)
be: Use rbitset_alloca() instead of rbitset_malloc()
This plugs a memory leak.
Diffstat (limited to 'ir/be/TEMPLATE')
-rw-r--r--ir/be/TEMPLATE/bearch_TEMPLATE.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ir/be/TEMPLATE/bearch_TEMPLATE.c b/ir/be/TEMPLATE/bearch_TEMPLATE.c
index ddd32d3..9909449 100644
--- a/ir/be/TEMPLATE/bearch_TEMPLATE.c
+++ b/ir/be/TEMPLATE/bearch_TEMPLATE.c
@@ -76,7 +76,7 @@ static void introduce_prologue(ir_graph *const irg)
static void TEMPLATE_generate_code(FILE *output, const char *cup_name)
{
be_begin(output, cup_name);
- unsigned *const sp_is_non_ssa = rbitset_malloc(N_TEMPLATE_REGISTERS);
+ unsigned *const sp_is_non_ssa = rbitset_alloca(N_TEMPLATE_REGISTERS);
rbitset_set(sp_is_non_ssa, REG_SP);
foreach_irp_irg(i, irg) {