]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: use Bool accessor in place of Val.U.(bool)
authorAlberto Donizetti <alb.donizetti@gmail.com>
Mon, 12 Oct 2020 12:35:24 +0000 (14:35 +0200)
committerRobert Griesemer <gri@golang.org>
Mon, 12 Oct 2020 16:12:25 +0000 (16:12 +0000)
commit349a2876467cdae58a772424f044f882fd4e2f6b
treeb5cd183d4c26324a8691a0551444f07f38eeb70b
parent2e7706d1fa50edd1bc9fa6a4d1eeb58d10fa2536
cmd/compile: use Bool accessor in place of Val.U.(bool)

We have a Bool() accessor for the value in boolean nodes, that we use
elsewhere for n.Val().U.(bool), use it here too. Noticed while reading
the code.

Change-Id: Ie42e014970099a05fe9f02f378af77b63e7e6b13
Reviewed-on: https://go-review.googlesource.com/c/go/+/261360
Trust: Alberto Donizetti <alb.donizetti@gmail.com>
Run-TryBot: Alberto Donizetti <alb.donizetti@gmail.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Robert Griesemer <gri@golang.org>
src/cmd/compile/internal/gc/swt.go