diff options
Diffstat (limited to 'src/cmd/gc/export.c')
-rw-r--r-- | src/cmd/gc/export.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cmd/gc/export.c b/src/cmd/gc/export.c index b3d3556de..8a6d779be 100644 --- a/src/cmd/gc/export.c +++ b/src/cmd/gc/export.c @@ -300,6 +300,7 @@ importvar(int export, Node *ss, Type *t) warn("redeclare import var %S from %T to %T", s, s->oname->type, t); } + checkwidth(t); addvar(newname(s), t, PEXTERN); if(debug['e']) @@ -325,6 +326,7 @@ importtype(int export, Node *ss, Type *t) s->otype = typ(0); *s->otype = *t; s->otype->sym = s; + checkwidth(s->otype); if(debug['e']) print("import type %S %lT\n", s, t); @@ -333,7 +335,7 @@ importtype(int export, Node *ss, Type *t) void importmethod(Sym *s, Type *t) { - dowidth(t); + checkwidth(t); addmethod(newname(s), t, 0); } |