mirror of
https://github.com/golang/go
synced 2024-11-19 06:54:39 -07:00
cmd/internal/gc: remove Node.Builtin
Node.Builtin was occasionally set to 1, but never read. Change-Id: Ia8a76bccc79b0f211296d50bd419860b13077ba5 Reviewed-on: https://go-review.googlesource.com/6808 Reviewed-by: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
parent
ddf958d468
commit
4b6337813d
@ -2502,7 +2502,6 @@ func lexinit() {
|
||||
s1.Def = Nod(ONAME, nil, nil)
|
||||
s1.Def.Sym = s1
|
||||
s1.Def.Etype = uint8(etype)
|
||||
s1.Def.Builtin = 1
|
||||
}
|
||||
}
|
||||
|
||||
@ -2630,7 +2629,6 @@ func lexfini() {
|
||||
s.Def = Nod(ONAME, nil, nil)
|
||||
s.Def.Sym = s
|
||||
s.Def.Etype = uint8(etype)
|
||||
s.Def.Builtin = 1
|
||||
s.Origpkg = builtinpkg
|
||||
}
|
||||
}
|
||||
|
@ -37,7 +37,6 @@ type Node struct {
|
||||
Diag uint8 // already printed error about this
|
||||
Noescape bool // func arguments do not escape
|
||||
Nosplit bool // func should not execute on separate stack
|
||||
Builtin uint8 // built-in name, like len or close
|
||||
Nowritebarrier bool // emit compiler error instead of write barrier
|
||||
Walkdef uint8
|
||||
Typecheck uint8
|
||||
|
Loading…
Reference in New Issue
Block a user