ref: 00612b9bd60706d7e77d3bbc165aa13e2a91556d
parent: 1220f2d67439a31cff760ae7d97818a8f84fec87
author: Roberto E. Vargas Caballero <[email protected]>
date: Fri Mar 13 06:08:39 EDT 2015
Remove unneded variable in move() This variable was used only once for getting a subfield, so it was better to use the base type instead.
--- a/cc2/cgen.c
+++ b/cc2/cgen.c
@@ -50,7 +50,6 @@
static void
move(Node *np)
{
- Type *tp = &np->type;
Symbol *sym;
char reg;
@@ -59,7 +58,7 @@
switch (np->op) {
case AUTO:
sym = np->u.sym;
- switch (tp->size) {
+ switch (np->type.size) {
case 1:
code(LDFX, reg, IX, sym->u.v.off);
break;