summaryrefslogtreecommitdiff
path: root/parse/specialize.c
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2016-01-29 23:29:59 -0800
committerOri Bernstein <ori@eigenstate.org>2016-01-29 23:29:59 -0800
commit6c44abcec8462f04e09db0ab62f74e4d1f384f5a (patch)
treeaa1b269ade040a7c54fb5705037226d9fd6b6a1f /parse/specialize.c
parentcd1d6a74365f76fa168bf642d940a56d5939bf7b (diff)
downloadmc-6c44abcec8462f04e09db0ab62f74e4d1f384f5a.tar.gz
Unify more eagerly.
Diffstat (limited to 'parse/specialize.c')
-rw-r--r--parse/specialize.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse/specialize.c b/parse/specialize.c
index 7c5b3ca..dd298ac 100644
--- a/parse/specialize.c
+++ b/parse/specialize.c
@@ -127,7 +127,7 @@ Type *tyspecialize(Type *orig, Tysubst *tsmap, Htab *delayed)
ret = mktyname(t->loc, t->name, tyspecialize(t->sub[0], tsmap, delayed));
ret->arg = arg;
ret->narg = narg;
- *var = *ret;
+ tytab[var->tid] = ret;
break;
case Tystruct:
ret = tydup(t);