NewClosure

This commit is contained in:
xushiwei
2024-05-03 20:02:33 +08:00
parent 8a7ddf4dc2
commit 223c24450e

View File

@@ -198,6 +198,9 @@ func (p *context) compileFunc(pkg llssa.Package, pkgTypes *types.Package, f *ssa
var name string
if closure {
name = funcName(pkgTypes, f)
if debugInstr {
log.Println("==> NewClosure", name, "type:", sig)
}
} else {
var ftype int
name, ftype = p.funcName(pkgTypes, f, true)