aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);
}