diff options
Diffstat (limited to 'pkg/compiler')
| -rw-r--r-- | pkg/compiler/types.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pkg/compiler/types.go b/pkg/compiler/types.go index c6be0d8f6..7c874130d 100644 --- a/pkg/compiler/types.go +++ b/pkg/compiler/types.go @@ -624,7 +624,10 @@ func init() { } typeStruct.Gen = func(comp *compiler, t *ast.Type, args []*ast.Type, base prog.IntTypeCommon) prog.Type { s := comp.structs[t.Ident] - key := prog.StructKey{t.Ident, base.ArgDir} + key := prog.StructKey{ + Name: t.Ident, + Dir: base.ArgDir, + } desc := comp.structDescs[key] if desc == nil { // Need to assign to structDescs before calling genStructDesc to break recursion. |
