aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2019-02-13 21:50:11 -0800
committerMichael Forney <mforney@mforney.org>2019-02-13 21:50:11 -0800
commitc322208a7eb1239bb71b591fb2282c5a4860edc5 (patch)
treeada417196d99d3bf41a5ed97b26394a88d2cc0e4
parent84ef3f01055c3a5177f5d0ad90e826bab2eb81bd (diff)
When storing initial value of parameters, use unqualified type
-rw-r--r--qbe.c2
1 files changed, 1 insertions, 1 deletions
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);
}