diff options
author | Michael Forney <mforney@mforney.org> | 2019-02-13 21:50:11 -0800 |
---|---|---|
committer | Michael Forney <mforney@mforney.org> | 2019-02-13 21:50:11 -0800 |
commit | c322208a7eb1239bb71b591fb2282c5a4860edc5 (patch) | |
tree | ada417196d99d3bf41a5ed97b26394a88d2cc0e4 | |
parent | 84ef3f01055c3a5177f5d0ad90e826bab2eb81bd (diff) |
When storing initial value of parameters, use unqualified type
-rw-r--r-- | qbe.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); } |