mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/compile/internal/types: don't export Nopkg anymore
There's already special code to access it. Change-Id: I28ca4f44a04262407ee9f1c826ada4e7eba44775 Reviewed-on: https://go-review.googlesource.com/41073 Reviewed-by: Matthew Dempsky <mdempsky@google.com>
This commit is contained in:
parent
b2a363b7ea
commit
62a2bee7a5
2 changed files with 6 additions and 4 deletions
|
|
@ -90,7 +90,7 @@ func uncommonSize(t *types.Type) int { // Sizeof(runtime.uncommontype{})
|
|||
func makefield(name string, t *types.Type) *types.Field {
|
||||
f := types.NewField()
|
||||
f.Type = t
|
||||
f.Sym = types.Nopkg.Lookup(name)
|
||||
f.Sym = (*types.Pkg)(nil).Lookup(name)
|
||||
return f
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue