README: sync/atomic

This commit is contained in:
xushiwei
2024-06-17 03:52:05 +08:00
parent b4794dc541
commit d73f77affc
2 changed files with 3 additions and 0 deletions

View File

@@ -1019,6 +1019,8 @@ func NewPackageEx(prog llssa.Program, patches Patches, pkg *ssa.Package, files [
alt, hasPatch := patches[pkgPath]
if hasPatch {
pkgTypes = typepatch.Pkg(pkgTypes, alt.Pkg)
pkg.Pkg = pkgTypes
alt.Pkg = pkgTypes
}
if packages.DebugPackagesLoad {
log.Println("==> NewPackageEx", pkgPath, hasPatch)