diff options
-rw-r--r-- | qbe.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -678,7 +678,7 @@ funcexpr(struct func *f, struct expr *e) case EXPRIDENT: d = e->u.ident.decl; switch (d->kind) { - case DECLOBJECT: return funcload(f, d->type, (struct lvalue){d->value}); + case DECLOBJECT: return funcload(f, e->type, (struct lvalue){d->value}); case DECLCONST: return d->value; default: fatal("unimplemented declaration kind %d", d->kind); |