mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/compile: remove Val.Ctype
$ sizeof -p cmd/compile/internal/gc Node Node 248 $ Change-Id: I0fbfeb0d0b36e225eb282fce9e480a96ec1d278f Reviewed-on: https://go-review.googlesource.com/10524 Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com>
This commit is contained in:
parent
4fdd53680c
commit
71080fbb9e
17 changed files with 117 additions and 108 deletions
|
|
@ -517,7 +517,7 @@ func staticname(t *Type, ctxt int) *Node {
|
|||
|
||||
func isliteral(n *Node) bool {
|
||||
if n.Op == OLITERAL {
|
||||
if n.Val.Ctype != CTNIL {
|
||||
if n.Val.Ctype() != CTNIL {
|
||||
return true
|
||||
}
|
||||
}
|
||||
|
|
@ -1351,7 +1351,7 @@ func addvalue(p *InitPlan, xoffset int64, key *Node, n *Node) {
|
|||
func iszero(n *Node) bool {
|
||||
switch n.Op {
|
||||
case OLITERAL:
|
||||
switch n.Val.Ctype {
|
||||
switch n.Val.Ctype() {
|
||||
default:
|
||||
Dump("unexpected literal", n)
|
||||
Fatal("iszero")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue