summaryrefslogtreecommitdiff
path: root/6/isel.c
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2015-12-14 23:27:06 -0800
committerOri Bernstein <ori@eigenstate.org>2015-12-14 23:27:06 -0800
commitf5a1454387098fa3abb7bf95f4123e1fac85cb7d (patch)
treec5410430516ebf119d8139c8b599732cbd545d51 /6/isel.c
parent607b2662bc1093833bfea0c49236f098271cf348 (diff)
downloadmc-f5a1454387098fa3abb7bf95f4123e1fac85cb7d.tar.gz
Initial support for void as an expression.
Diffstat (limited to '6/isel.c')
-rw-r--r--6/isel.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/6/isel.c b/6/isel.c
index 356bdca..c9de7e1 100644
--- a/6/isel.c
+++ b/6/isel.c
@@ -133,6 +133,7 @@ static Loc *loc(Isel *s, Node *n)
case Olit:
v = n->expr.args[0];
switch (v->lit.littype) {
+ case Lvoid: l = NULL; break;
case Lchr: l = loclit(v->lit.chrval, mode(n)); break;
case Lbool: l = loclit(v->lit.boolval, mode(n)); break;
case Lint: l = loclit(v->lit.intval, mode(n)); break;