aboutsummaryrefslogtreecommitdiff
path: root/qbe.c
diff options
context:
space:
mode:
Diffstat (limited to 'qbe.c')
-rw-r--r--qbe.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/qbe.c b/qbe.c
index c930972..f76f792 100644
--- a/qbe.c
+++ b/qbe.c
@@ -645,8 +645,7 @@ funclval(struct func *f, struct expr *e)
lval.addr = d->value;
break;
case EXPRCOMPOUND:
- d = mkdecl(NULL, DECLOBJECT, e->type, e->qual, LINKNONE);
- d->u.obj.storage = SDAUTO;
+ d = e->u.compound.decl;
funcinit(f, d, e->u.compound.init, true);
lval.addr = d->value;
break;