summaryrefslogtreecommitdiff
path: root/src/cmd/internal/gc/gsubr.go
diff options
context:
space:
mode:
authorJosh Bleecher Snyder <josharian@gmail.com>2015-04-02 19:58:37 -0700
committerJosh Bleecher Snyder <josharian@gmail.com>2015-04-07 03:10:30 +0000
commit75883bae28435530bcb01d071d1b448ab0cf11cd (patch)
treebc33fb1e97e8b9212fb50f49e8637344a3b69e7c /src/cmd/internal/gc/gsubr.go
parentbe4c38ed34fec9bc8b93235989f519ce57b45c4c (diff)
downloadgo-git-75883bae28435530bcb01d071d1b448ab0cf11cd.tar.gz
cmd/internal/gc: convert yet more Node fields to bools
Convert Embedded, Method, and Colas to bools. I believe that this is the last of the Node fields that can be trivially converted to bools. No functional changes. Passes toolstash -cmp. Change-Id: I81962ee47866596341fc60d24d6959c20cd7fc1c Reviewed-on: https://go-review.googlesource.com/8440 Reviewed-by: Ian Lance Taylor <iant@golang.org> Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/cmd/internal/gc/gsubr.go')
-rw-r--r--src/cmd/internal/gc/gsubr.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/cmd/internal/gc/gsubr.go b/src/cmd/internal/gc/gsubr.go
index d54f90594c..6ca8c75a83 100644
--- a/src/cmd/internal/gc/gsubr.go
+++ b/src/cmd/internal/gc/gsubr.go
@@ -133,7 +133,7 @@ func Nodreg(n *Node, t *Type, r int) {
*n = Node{}
n.Op = OREGISTER
- n.Addable = 1
+ n.Addable = true
ullmancalc(n)
n.Val.U.Reg = int16(r)
n.Type = t
@@ -361,7 +361,7 @@ func Naddr(a *obj.Addr, n *Node) {
if s == nil {
s = Lookup(".noname")
}
- if n.Method != 0 {
+ if n.Method {
if n.Type != nil {
if n.Type.Sym != nil {
if n.Type.Sym.Pkg != nil {
@@ -520,7 +520,7 @@ func nodarg(t *Type, fp int) *Node {
Fatal("nodarg: offset not computed for %v", Tconv(t, 0))
}
n.Xoffset = first.Width
- n.Addable = 1
+ n.Addable = true
goto fp
}
@@ -546,7 +546,7 @@ func nodarg(t *Type, fp int) *Node {
Fatal("nodarg: offset not computed for %v", Tconv(t, 0))
}
n.Xoffset = t.Width
- n.Addable = 1
+ n.Addable = true
n.Orig = t.Nname
// Rewrite argument named _ to __,