aboutsummaryrefslogtreecommitdiff
path: root/qbe.c
diff options
context:
space:
mode:
Diffstat (limited to 'qbe.c')
-rw-r--r--qbe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/qbe.c b/qbe.c
index 8fa2b88..f41e28c 100644
--- a/qbe.c
+++ b/qbe.c
@@ -378,7 +378,7 @@ mkfunc(char *name, struct type *t, struct scope *s)
scopeputdecl(s, p->name, d);
}
- t = mkarraytype(mkqualifiedtype(&typechar, QUALCONST), strlen(name) + 1);
+ t = mkarraytype(&typechar, QUALCONST, strlen(name) + 1);
d = mkdecl(DECLOBJECT, t, QUALNONE, LINKNONE);
d->value = mkglobal("__func__", true);
scopeputdecl(s, "__func__", d);