mirror of
https://github.com/golang/go.git
synced 2024-09-22 02:48:50 +00:00
cmd/compile/internal/test: don't initialize LocalPkg.Path to ""
Updates #51734. Change-Id: I80c4e9ae7e17172f26cd32509ce0cb5b4d311819 Reviewed-on: https://go-review.googlesource.com/c/go/+/406315 Reviewed-by: Cuong Manh Le <cuong.manhle.vn@gmail.com> Run-TryBot: Matthew Dempsky <mdempsky@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: David Chase <drchase@google.com>
This commit is contained in:
parent
9956996f6e
commit
35d83535f7
@ -33,8 +33,8 @@ func TestMain(m *testing.M) {
|
||||
base.Ctxt.DiagFunc = base.Errorf
|
||||
base.Ctxt.DiagFlush = base.FlushErrors
|
||||
base.Ctxt.Bso = bufio.NewWriter(os.Stdout)
|
||||
types.LocalPkg = types.NewPkg("", "local")
|
||||
types.LocalPkg.Prefix = `""`
|
||||
types.LocalPkg = types.NewPkg("p", "local")
|
||||
types.LocalPkg.Prefix = "p"
|
||||
types.PtrSize = ssagen.Arch.LinkArch.PtrSize
|
||||
types.RegSize = ssagen.Arch.LinkArch.RegSize
|
||||
typecheck.InitUniverse()
|
||||
|
Loading…
Reference in New Issue
Block a user