From: Wolfgang (Blub) Bumiller <blub@speed.at>
Date: Wed, 21 Nov 2012 20:59:25 +0000 (+0100)
Subject: make ast_function_label also work when -dumpfin is used instead of -dump
X-Git-Tag: 0.1.9~358^2
X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=ba9217e57645a193e1e289f97d17570c03089782;p=xonotic%2Fgmqcc.git

make ast_function_label also work when -dumpfin is used instead of -dump
---

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;