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:
Marvin Stenger 2015-09-08 03:51:30 +02:00 committed by Brad Fitzpatrick
parent e03c7896a7
commit 9ac0fff70a
17 changed files with 52 additions and 52 deletions

View file

@ -281,7 +281,7 @@ func dowidth(t *Type) {
}
case TSTRUCT:
if t.Funarg != 0 {
if t.Funarg {
Fatalf("dowidth fn struct %v", t)
}
w = widstruct(t, t, 0, 1)
@ -366,7 +366,7 @@ func checkwidth(t *Type) {
// function arg structs should not be checked
// outside of the enclosing function.
if t.Funarg != 0 {
if t.Funarg {
Fatalf("checkwidth %v", t)
}
@ -375,10 +375,10 @@ func checkwidth(t *Type) {
return
}
if t.Deferwidth != 0 {
if t.Deferwidth {
return
}
t.Deferwidth = 1
t.Deferwidth = true
l := tlfree
if l != nil {
@ -405,7 +405,7 @@ func resumecheckwidth() {
Fatalf("resumecheckwidth")
}
for l := tlq; l != nil; l = tlq {
l.t.Deferwidth = 0
l.t.Deferwidth = false
tlq = l.next
dowidth(l.t)
l.next = tlfree