]> Cypherpunks.ru repositories - gostls13.git/commit
[dev.regabi] cmd/compile: remove extra typ field in Name struct
authorDan Scales <danscales@google.com>
Wed, 2 Dec 2020 04:51:18 +0000 (20:51 -0800)
committerDan Scales <danscales@google.com>
Thu, 3 Dec 2020 07:22:32 +0000 (07:22 +0000)
commit5a3b6796cdb1833929805262b6f843c0e82fa7e1
tree0bd976d3db701390f0b9472e7548db0653e06c96
parent64bc656aed3ba7539a85f6b52f2aa933c9ce8130
[dev.regabi] cmd/compile: remove extra typ field in Name struct

Noticed the typ field was duplicated, since it is also in miniExpr inside Name.

Also clarified the comments for Func, now that it is actually the ODCLFUNC node.

Change-Id: Ia483a0ad34bb409cd92c43d4ae0a6852f9e4f644
Reviewed-on: https://go-review.googlesource.com/c/go/+/274619
Run-TryBot: Dan Scales <danscales@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Trust: Dan Scales <danscales@google.com>
Reviewed-by: Russ Cox <rsc@golang.org>
src/cmd/compile/internal/ir/func.go
src/cmd/compile/internal/ir/name.go
src/cmd/compile/internal/ir/sizeof_test.go