Skip to content

Commit

Permalink
cmd/internal/gc: explicitly set zero bool Val
Browse files Browse the repository at this point in the history
This trivial change is a prerequisite to
converting Val.U to an interface{}.

No functional changes. Passes toolstash -cmp.

Change-Id: I17ff036f68d29a9ed0097a8b23ae1c91e6ce8c21
Reviewed-on: https://go-review.googlesource.com/10058
Reviewed-by: Russ Cox <[email protected]>
  • Loading branch information
josharian committed May 15, 2015
1 parent ba57781 commit 3c06cff
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/cmd/internal/gc/gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,7 @@ func Clearslim(n *Node) {

case TBOOL:
z.Val.Ctype = CTBOOL
z.Val.U.Bval = false

case TINT8,
TINT16,
Expand Down

0 comments on commit 3c06cff

Please sign in to comment.