diff options
| author | Josh Bleecher Snyder <josharian@gmail.com> | 2015-04-02 19:58:37 -0700 |
|---|---|---|
| committer | Josh Bleecher Snyder <josharian@gmail.com> | 2015-04-07 03:10:30 +0000 |
| commit | 75883bae28435530bcb01d071d1b448ab0cf11cd (patch) | |
| tree | bc33fb1e97e8b9212fb50f49e8637344a3b69e7c /src/cmd/internal/gc/sinit.go | |
| parent | be4c38ed34fec9bc8b93235989f519ce57b45c4c (diff) | |
| download | go-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/sinit.go')
| -rw-r--r-- | src/cmd/internal/gc/sinit.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/internal/gc/sinit.go b/src/cmd/internal/gc/sinit.go index f7167363c1..96743b861c 100644 --- a/src/cmd/internal/gc/sinit.go +++ b/src/cmd/internal/gc/sinit.go @@ -529,7 +529,7 @@ func simplename(n *Node) bool { if n.Op != ONAME { return false } - if n.Addable == 0 { + if !n.Addable { return false } if n.Class&PHEAP != 0 { @@ -1239,7 +1239,7 @@ func stataddr(nam *Node, n *Node) bool { switch n.Op { case ONAME: *nam = *n - return n.Addable != 0 + return n.Addable case ODOT: if !stataddr(nam, n.Left) { |
