From c322208a7eb1239bb71b591fb2282c5a4860edc5 Mon Sep 17 00:00:00 2001 From: Michael Forney Date: Wed, 13 Feb 2019 21:50:11 -0800 Subject: When storing initial value of parameters, use unqualified type --- qbe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qbe.c b/qbe.c index a45d449..ab9bf15 100644 --- a/qbe.c +++ b/qbe.c @@ -359,7 +359,7 @@ mkfunc(char *name, struct type *t, struct scope *s) d->value = p->value; } else { funcinit(f, d, NULL); - funcstore(f, p->type, d->value, p->value); + funcstore(f, typeunqual(p->type, NULL), d->value, p->value); } scopeputdecl(s, p->name, d); } -- cgit v1.2.3