ref: 8ecdf73fad606722a6f2c05f53ad619c21bf84de
parent: 3f457c0c972ce2cdb413a76a05da874d998f2cc2
author: Ori Bernstein <ori@eigenstate.org>
date: Sat Feb 27 20:09:11 EST 2016
Plan 9 also needs to dedup types.
--- a/6/genp9.c
+++ b/6/genp9.c
@@ -387,8 +387,11 @@
Blob *b;
char lbl[1024];
- if (ty->type == Tyvar)
+ ty = tydedup(ty);
+ if (ty->type == Tyvar || ty->isemitted)
return;
+
+ ty->isemitted = 1;
b = tydescblob(ty);
if (!b)
return;