summaryrefslogtreecommitdiff
path: root/6
diff options
context:
space:
mode:
authorOri Bernstein <ori@markovcorp.com>2017-05-14 12:54:51 -0700
committerOri Bernstein <ori@markovcorp.com>2017-05-14 12:55:49 -0700
commit1f99d2dc0f2e8afe604bfe777063b4f2e277e185 (patch)
treedf45b20469f0f5c159d13b819b1420d258f76a0d /6
parentbe069342ca8397d91cc6fba3b22f7c353370f2af (diff)
downloadmc-1f99d2dc0f2e8afe604bfe777063b4f2e277e185.tar.gz
Types based off of void *also* have no storage.
Diffstat (limited to '6')
-rw-r--r--6/simp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/6/simp.c b/6/simp.c
index 968d5f2..c4aeb5f 100644
--- a/6/simp.c
+++ b/6/simp.c
@@ -1282,7 +1282,7 @@ static void simpinit(Simp *s, Node *f)
s->isbigret = 1;
s->ret = gentemp(f->loc, mktyptr(f->loc, ty), &dcl);
declarearg(s, dcl);
- } else if (ty->type != Tyvoid) {
+ } else if (tybase(ty)->type != Tyvoid) {
s->isbigret = 0;
s->ret = gentemp(f->loc, ty, &dcl);
}