From 72aee2b8f63707e9b699f4cf74fe96c6547efbd8 Mon Sep 17 00:00:00 2001 From: Teddy Date: Sat, 3 May 2014 06:47:15 +0800 Subject: ... --- mips.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/mips.c b/mips.c index affad2c..8e3c047 100644 --- a/mips.c +++ b/mips.c @@ -64,10 +64,9 @@ void mips_prologue() { void mips_load(int reg, COpr_t opr) { CVar_t var = cinterv_repr(opr)->info.var; CType_t type = opr->type; - if (opr->kind == VAR && - (type->type == CSTRUCT || + if (type->type == CSTRUCT || type->type == CUNION || - type->type == CARR)) + type->type == CARR) { if (var->global) printf("\tla $%d, _%s\n", reg, var->name); -- cgit v1.2.3-70-g09d2