aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/compiler/compiler.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/compiler/compiler.go')
-rw-r--r--pkg/compiler/compiler.go12
1 files changed, 7 insertions, 5 deletions
diff --git a/pkg/compiler/compiler.go b/pkg/compiler/compiler.go
index 3f10ae5fe..978255219 100644
--- a/pkg/compiler/compiler.go
+++ b/pkg/compiler/compiler.go
@@ -65,6 +65,7 @@ func createCompiler(desc *ast.Description, target *targets.Target, eh ast.ErrorH
structVarlen: make(map[string]bool),
structTypes: make(map[string]prog.Type),
structFiles: make(map[*ast.Struct]map[string]ast.Pos),
+ recursiveQuery: make(map[ast.Node]bool),
builtinConsts: map[string]uint64{
"PTR_SIZE": target.PtrSize,
},
@@ -135,11 +136,12 @@ type compiler struct {
usedTypedefs map[string]bool
brokenTypedefs map[string]bool
- structVarlen map[string]bool
- structTypes map[string]prog.Type
- structFiles map[*ast.Struct]map[string]ast.Pos
- builtinConsts map[string]uint64
- fileMeta map[string]Meta
+ structVarlen map[string]bool
+ structTypes map[string]prog.Type
+ structFiles map[*ast.Struct]map[string]ast.Pos
+ builtinConsts map[string]uint64
+ fileMeta map[string]Meta
+ recursiveQuery map[ast.Node]bool
}
type warn struct {