ref: cf0d2db50fd6968c52a682e3bf9e749a7b89074b
parent: 0314a338f9488fafd0222ce35adf27fe6f4fec7d
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Fri Jan 20 14:04:51 EST 2017
[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.
--- a/cc2/arch/qbe/cgen.c
+++ b/cc2/arch/qbe/cgen.c
@@ -241,7 +241,6 @@
tp = &np->type;
switch (tp->size) {
case 0:
- np->left = tmpnode(NULL, tp);
op = ASCALLW;
break;
case 1: