cl: patchType check func signature

This commit is contained in:
visualfc
2025-07-03 20:48:51 +08:00
parent f2c16beab6
commit d7f2f4efdd
2 changed files with 35 additions and 6 deletions

View File

@@ -356,7 +356,7 @@ func (p *context) funcOf(fn *ssa.Function) (aFn llssa.Function, pyFn llssa.PyObj
if len(fn.FreeVars) > 0 {
return nil, nil, ignoredFunc
}
sig := fn.Signature
sig := p.patchType(fn.Signature).(*types.Signature)
aFn = pkg.NewFuncEx(name, sig, llssa.Background(ftype), false, fn.Origin() != nil)
if disableInline {
aFn.Inline(llssa.NoInline)