summaryrefslogtreecommitdiff
path: root/parse/type.c
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2018-01-01 21:09:50 -0800
committerOri Bernstein <ori@eigenstate.org>2018-01-11 22:16:11 -0800
commit90e26e0f687da28530b3b967df0cedf20407c071 (patch)
tree09c85ff396a5f235dbcbd5db2df911b5217bb472 /parse/type.c
parent94448201527e0c47c2924219bf1a8d0c0c2406b7 (diff)
downloadmc-90e26e0f687da28530b3b967df0cedf20407c071.tar.gz
Move to new trait syntax.
Diffstat (limited to 'parse/type.c')
-rw-r--r--parse/type.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/parse/type.c b/parse/type.c
index c31fbbe..ab033cb 100644
--- a/parse/type.c
+++ b/parse/type.c
@@ -24,6 +24,7 @@ size_t ntraittab;
Node **impltab;
size_t nimpltab;
Htab *eqcache;
+Htab *seqbase;
struct Typair {
uint32_t atid;
@@ -1083,6 +1084,7 @@ tyinit(Stab *st)
Type *ty;
Trait *tr;
+ seqbase = mkht(tyhash, tyeq);
eqcache = mkht(typairhash, typaireq);
tydeduptab = mkht(tyhash, tystricteq);
/* this must be done after all the types are created, otherwise we will