mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/compile/internal/gc: get rid of useless autopkg variable
autopkg == localpkg, so it appears to be a remnant of earlier code. Change-Id: I65b6c074535e877317cbf9f1f35e94890f0ebf14 Reviewed-on: https://go-review.googlesource.com/26662 Reviewed-by: Keith Randall <khr@golang.org>
This commit is contained in:
parent
3dc082f8fe
commit
133d231a89
3 changed files with 1 additions and 5 deletions
|
|
@ -156,8 +156,6 @@ var Debug_typeassert int
|
|||
|
||||
var localpkg *Pkg // package being compiled
|
||||
|
||||
var autopkg *Pkg // fake package for allocating auto variables
|
||||
|
||||
var importpkg *Pkg // package being imported
|
||||
|
||||
var itabpkg *Pkg // fake pkg for itab entries
|
||||
|
|
|
|||
|
|
@ -108,8 +108,6 @@ func Main() {
|
|||
|
||||
localpkg = mkpkg("")
|
||||
localpkg.Prefix = "\"\""
|
||||
autopkg = mkpkg("")
|
||||
autopkg.Prefix = "\"\""
|
||||
|
||||
// pseudo-package, for scoping
|
||||
builtinpkg = mkpkg("go.builtin")
|
||||
|
|
|
|||
|
|
@ -4521,7 +4521,7 @@ func (e *ssaExport) SplitStruct(name ssa.LocalSlot, i int) ssa.LocalSlot {
|
|||
// namedAuto returns a new AUTO variable with the given name and type.
|
||||
func (e *ssaExport) namedAuto(name string, typ ssa.Type) ssa.GCNode {
|
||||
t := typ.(*Type)
|
||||
s := &Sym{Name: name, Pkg: autopkg}
|
||||
s := &Sym{Name: name, Pkg: localpkg}
|
||||
n := Nod(ONAME, nil, nil)
|
||||
s.Def = n
|
||||
s.Def.Used = true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue