mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/compile/internal/gc: convert fields of Type to bool
Convert some fields of struct Type in go.go from uint8 to bool. This change passes go build -toolexec 'toolstash -cmp' -a std. Change-Id: I0a6c53f8ee686839b5234010ee2de7ae3940d499 Reviewed-on: https://go-review.googlesource.com/14370 Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
parent
e03c7896a7
commit
9ac0fff70a
17 changed files with 52 additions and 52 deletions
|
|
@ -429,7 +429,7 @@ func algtype1(t *Type, bad **Type) int {
|
|||
if t.Broke {
|
||||
return AMEM
|
||||
}
|
||||
if t.Noalg != 0 {
|
||||
if t.Noalg {
|
||||
return ANOEQ
|
||||
}
|
||||
|
||||
|
|
@ -1385,7 +1385,7 @@ func substAny(tp **Type, types *[]*Type) {
|
|||
if t == nil {
|
||||
return
|
||||
}
|
||||
if t.Etype == TANY && t.Copyany != 0 {
|
||||
if t.Etype == TANY && t.Copyany {
|
||||
if len(*types) == 0 {
|
||||
Fatalf("substArgTypes: not enough argument types")
|
||||
}
|
||||
|
|
@ -1486,7 +1486,7 @@ func deep(t *Type) *Type {
|
|||
|
||||
case TANY:
|
||||
nt = shallow(t)
|
||||
nt.Copyany = 1
|
||||
nt.Copyany = true
|
||||
|
||||
case TPTR32, TPTR64, TCHAN, TARRAY:
|
||||
nt = shallow(t)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue