commit fde6f21d71a9c3786fa5f89275cbc017b87b0aa9
parent 9f59d4ee73fec3d84d1bff6b2938c9972107250d
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date: Fri, 20 Jan 2017 19:04:51 +0100
[cc2-qbe] Fix void functions
In void functions we only have to convert them to int functions.
The allocated value was useless and it generated a memory leak.
Diffstat:
1 file changed, 0 insertions(+), 1 deletion(-)
diff --git a/cc2/arch/qbe/cgen.c b/cc2/arch/qbe/cgen.c
@@ -241,7 +241,6 @@ call(Node *np, Node *fun, Node *ret)
tp = &np->type;
switch (tp->size) {
case 0:
- np->left = tmpnode(NULL, tp);
op = ASCALLW;
break;
case 1: