From ba9217e57645a193e1e289f97d17570c03089782 Mon Sep 17 00:00:00 2001 From: "Wolfgang (Blub) Bumiller" Date: Wed, 21 Nov 2012 21:59:25 +0100 Subject: [PATCH] make ast_function_label also work when -dumpfin is used instead of -dump --- ast.c | 2 +- ir.c | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/ast.c b/ast.c index 7d7443f..907a944 100644 --- a/ast.c +++ b/ast.c @@ -940,7 +940,7 @@ const char* ast_function_label(ast_function *self, const char *prefix) size_t len; char *from; - if (!opts_dump) + if (!opts_dump && !opts_dumpfin) return NULL; id = (self->labelcount++); diff --git a/ir.c b/ir.c index c1e116a..e0eee37 100644 --- a/ir.c +++ b/ir.c @@ -542,7 +542,6 @@ bool ir_function_finalize(ir_function *self) if (!ir_function_calculate_liferanges(self)) return false; - if (!ir_function_allocate_locals(self)) return false; return true; -- 2.39.2