summaryrefslogtreecommitdiff
path: root/parse/infer.c
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2015-05-09 16:49:09 -0700
committerOri Bernstein <ori@eigenstate.org>2015-05-09 16:49:09 -0700
commited8711e68e441e9884d734932373317834665833 (patch)
tree08a3f37550af1b6adb1ad912ee6df70fa6c1ceaf /parse/infer.c
parentbd5fb6d0628831cde25f13e3fe461786d616a06e (diff)
downloadmc-ed8711e68e441e9884d734932373317834665833.tar.gz
Refactor code to add jump tables, and prepare to generate them.
Diffstat (limited to 'parse/infer.c')
-rw-r--r--parse/infer.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/parse/infer.c b/parse/infer.c
index 937f116..3161a7c 100644
--- a/parse/infer.c
+++ b/parse/infer.c
@@ -528,6 +528,7 @@ static Type *littype(Node *n)
case Lstr: t = mktyslice(n->loc, mktype(n->loc, Tybyte)); break;
case Llbl: t = mktyptr(n->loc, mktype(n->loc, Tyvoid)); break;
case Lfunc: t = n->lit.fnval->func.type; break;
+ case Ljtab: t = mktype(n->loc, Tyvoid); break;
}
n->lit.type = t;
}