scc

Simple C99 Compiler
Log | Files | Refs | README | LICENSE

commit c405c48a66cc5a7eeb192db81d42c08da2b19d73
parent afc55f2a912d03aab2cfde5de3ba76de6ece8ac3
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Thu, 12 Feb 2015 12:39:53 +0100

Remove incorrect assert in cgen()

This assert was forcing to have operands of a node in registers,
but this is something that it will not be always true, for example
in an assignment.

Diffstat:
cc2/cgen.c | 1-
1 file changed, 0 insertions(+), 1 deletion(-)

diff --git a/cc2/cgen.c b/cc2/cgen.c @@ -122,7 +122,6 @@ cgen(Node *np, Node *parent) cgen(q); } - assert(lp && lp->op == REG || rp && rp->op == REG); switch (np->op) { case OADD: switch (np->type->size) {