summaryrefslogtreecommitdiff
path: root/6/typeinfo.c
diff options
context:
space:
mode:
Diffstat (limited to '6/typeinfo.c')
-rw-r--r--6/typeinfo.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/6/typeinfo.c b/6/typeinfo.c
index a16982c..be34b93 100644
--- a/6/typeinfo.c
+++ b/6/typeinfo.c
@@ -114,6 +114,7 @@ Blob *tydescsub(Type *ty)
if (ty->type == Tyvar)
return NULL;
+ ty = tydedup(ty);
if (ty->type == Tyname)
tt |= Tdindirect;
sz = mkblobi(Btimin, 0);
@@ -220,7 +221,7 @@ Blob *tydescblob(Type *ty)
sz->ival = blobsz(sub);
lappend(&b->seq.sub, &b->seq.nsub, sz);
lappend(&b->seq.sub, &b->seq.nsub, sub);
- if (ty->vis == Visexport)
+ if (ty->vis != Visintern)
b->isglobl = 1;
} else {
b = tydescsub(ty);