[hackers] [scc] [cc2-qbe] Don't call to newlabel() as parameter of label2node() || Roberto E. Vargas Caballero

From: <git_AT_suckless.org>
Date: Fri, 19 Aug 2016 13:39:05 +0200 (CEST)

commit 273618dcaa13b6b1933f09c73ff9caeb5ab87bc2
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Thu Aug 18 13:12:49 2016 +0200
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
CommitDate: Thu Aug 18 13:12:49 2016 +0200

    [cc2-qbe] Don't call to newlabel() as parameter of label2node()
    
    A NULL parameter to label2node() is considered as a request to
    allocate a new symbol in label2node().

diff --git a/cc2/arch/qbe/cgen.c b/cc2/arch/qbe/cgen.c
index 43a6020..6b16c2c 100644
--- a/cc2/arch/qbe/cgen.c
+++ b/cc2/arch/qbe/cgen.c
_AT_@ -418,7 +418,7 @@ rhs(Node *np, Node *ret)
         case OOR:
                 true = newlabel();
                 false = newlabel();
- phi = label2node(&aux1, newlabel());
+ phi = label2node(&aux1, NULL);
                 tmpnode(ret, &int32type);
 
                 bool(np, true, false);
Received on Fri Aug 19 2016 - 13:39:05 CEST

This archive was generated by hypermail 2.3.0 : Fri Aug 19 2016 - 13:48:16 CEST