testFrom: use test.Diff

This commit is contained in:
xushiwei
2025-06-23 21:14:26 +08:00
parent 3d53b12dea
commit b7b6e3bc93
5 changed files with 12 additions and 17 deletions

View File

@@ -334,7 +334,7 @@ var llgoInstrs = map[string]int{
// funcOf returns a function by name and set ftype = goFunc, cFunc, etc.
// or returns nil and set ftype = llgoCstr, llgoAlloca, llgoUnreachable, etc.
func (p *context) funcOf(fn *ssa.Function) (aFn llssa.Function, pyFn llssa.PyObjRef, ftype int) {
pkgTypes, name, ftype := p.funcName(fn, false)
pkgTypes, name, ftype := p.funcName(fn)
switch ftype {
case pyFunc:
if kind, mod := pkgKindByScope(pkgTypes.Scope()); kind == PkgPyModule {