summaryrefslogtreecommitdiff
path: root/6
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2015-12-14 23:47:17 -0800
committerOri Bernstein <ori@eigenstate.org>2015-12-14 23:47:17 -0800
commit2b4787aec89f8d1dcd75c3dc022a8a137c5f5178 (patch)
tree133a9c3d918aa321dd014a5c612538d38302414c /6
parentf5a1454387098fa3abb7bf95f4123e1fac85cb7d (diff)
downloadmc-2b4787aec89f8d1dcd75c3dc022a8a137c5f5178.tar.gz
Fix void arguments in argument lists.
'void' isn't a bloody integer.
Diffstat (limited to '6')
-rw-r--r--6/isel.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/6/isel.c b/6/isel.c
index c9de7e1..a8469bf 100644
--- a/6/isel.c
+++ b/6/isel.c
@@ -78,7 +78,7 @@ static Mode tymode(Type *t)
}
break;
}
- return ModeQ;
+ return ModeNone;
}
static Mode mode(Node *n)
@@ -950,8 +950,7 @@ void addarglocs(Isel *s, Func *fn)
htput(s->reglocs, arg, l);
nints++;
} else {
- htput(s->stkoff, arg, itop(-(argoff + 2*Ptrsz)));
- argoff += size(arg);
+ assert(tybase(decltype(arg))->type == Tyvoid);
}
}
}