summaryrefslogtreecommitdiff
path: root/6/blob.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/blob.c
parent607b2662bc1093833bfea0c49236f098271cf348 (diff)
downloadmc-f5a1454387098fa3abb7bf95f4123e1fac85cb7d.tar.gz
Initial support for void as an expression.
Diffstat (limited to '6/blob.c')
-rw-r--r--6/blob.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/6/blob.c b/6/blob.c
index a215e93..0be2af2 100644
--- a/6/blob.c
+++ b/6/blob.c
@@ -134,6 +134,7 @@ static size_t bloblit(Blob *seq, Htab *strtab, Node *v, Type *ty)
assert(v->type == Nlit);
sz = tysize(ty);
switch (v->lit.littype) {
+ case Lvoid: break;
case Lint: b(seq, mkblobi(intsz[sz], v->lit.intval)); break;
case Lbool: b(seq, mkblobi(Bti8, v->lit.boolval)); break;
case Lchr: b(seq, mkblobi(Bti32, v->lit.chrval)); break;