cl: pathOf(pkg)

This commit is contained in:
xushiwei
2024-04-25 14:30:02 +08:00
parent 1014fa53dd
commit 0f00add402
2 changed files with 10 additions and 7 deletions

View File

@@ -379,7 +379,7 @@ func NewPackage(prog llssa.Program, pkg *ssa.Package, files []*ast.File) (ret ll
})
pkgTypes := pkg.Pkg
pkgName, pkgPath := pkgTypes.Name(), pkgTypes.Path()
pkgName, pkgPath := pkgTypes.Name(), pathOf(pkgTypes)
ret = prog.NewPackage(pkgName, pkgPath)
ctx := &context{