ssa: cvtClosure remove closureCtx param

This commit is contained in:
visualfc
2024-11-25 20:13:42 +08:00
parent 4552691aed
commit fadd64c1e9
12 changed files with 2782 additions and 2841 deletions

View File

@@ -1005,7 +1005,8 @@ func (b Builder) Call(fn Expr, args ...Expr) (ret Expr) {
case vkClosure:
data = b.Field(fn, 1)
fn = b.Field(fn, 0)
raw = fn.raw.Type
ctx := types.NewParam(token.NoPos, nil, closureCtx, types.Typ[types.UnsafePointer])
raw = FuncAddCtx(ctx, fn.raw.Type.(*types.Signature))
fallthrough
case vkFuncPtr:
sig = raw.Underlying().(*types.Signature)