testFrom: use test.Diff
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user