[hackers] [scc] [cc2-qbe] Simplify cgen() || Roberto E. Vargas Caballero

From: <git_AT_suckless.org>
Date: Fri, 22 Apr 2016 15:37:32 +0200 (CEST)

commit 7b36900e3ca3e2f2868df07c85c0d3195637aaae
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Fri Apr 22 15:29:08 2016 +0200
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
CommitDate: Fri Apr 22 15:29:08 2016 +0200

    [cc2-qbe] Simplify cgen()
    
    Tmpnode() returns it first parameter, so it can be used as parameter of code().

diff --git a/cc2/arch/qbe/cgen.c b/cc2/arch/qbe/cgen.c
index ef5832f..f26c30d 100644
--- a/cc2/arch/qbe/cgen.c
+++ b/cc2/arch/qbe/cgen.c
_AT_@ -200,8 +200,7 @@ cgen(Node *np)
                         l = np->left = load(l);
                 if ((r->flags & (ISTMP|ISCONS)) == 0)
                         r = np->right = load(r);
- tmpnode(np);
- code(op, np, l, r);
+ code(op, tmpnode(np), l, r);
                 return np;
         case ONOP:
         case OBLOOP:
Received on Fri Apr 22 2016 - 15:37:32 CEST

This archive was generated by hypermail 2.3.0 : Fri Apr 22 2016 - 15:48:15 CEST