closure: MakeClosure/makeClosureCtx fix
This commit is contained in:
@@ -196,7 +196,7 @@ func makeClosureCtx(pkg *types.Package, vars []*ssa.FreeVar) *types.Var {
|
||||
for i, v := range vars {
|
||||
flds[i] = types.NewField(token.NoPos, pkg, v.Name(), v.Type(), false)
|
||||
}
|
||||
t := types.NewStruct(flds, nil)
|
||||
t := types.NewPointer(types.NewStruct(flds, nil))
|
||||
return types.NewParam(token.NoPos, pkg, "__llgo_ctx", t)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user