cproc

Unnamed repository; edit this file 'description' to name the repository.
git clone git://git.nihaljere.xyz/cproc
Log | Files | Refs | Submodules | README | LICENSE

commit c322208a7eb1239bb71b591fb2282c5a4860edc5
parent 84ef3f01055c3a5177f5d0ad90e826bab2eb81bd
Author: Michael Forney <mforney@mforney.org>
Date:   Wed, 13 Feb 2019 21:50:11 -0800

When storing initial value of parameters, use unqualified type

Diffstat:
Mqbe.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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); }