scc

simple C compiler
git clone git://git.2f30.org/scc
Log | Files | Refs | README | LICENSE

commit 273618dcaa13b6b1933f09c73ff9caeb5ab87bc2
parent de85950a6348a31dece85612c0ec77e1e59200dd
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Thu, 18 Aug 2016 13:12:49 +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().

Diffstat:
Mcc2/arch/qbe/cgen.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cc2/arch/qbe/cgen.c b/cc2/arch/qbe/cgen.c @@ -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);