ref: 78517784dbcc4232bdd71df3365437b6174ab717
parent: 51d0b0427379342a3b2d3701c495bd87b3bea8b1
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Fri Sep 18 08:34:34 EDT 2015
Avoid emit castings to void These castings are only important to semantic level, so it is a non sense to emit them to the backend.
--- a/cc1/code.c
+++ b/cc1/code.c
@@ -318,7 +318,8 @@
Node *np = arg, *lp = np->left;
emitnode(lp);
- printf("\t%c%c", lp->type->letter, np->type->letter);
+ if (np->type != voidtype)
+ printf("\t%c%c", lp->type->letter, np->type->letter);
}
static void