mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/compile: allow iota inside function in a ConstSpec
Fixes #22344 Change-Id: I7c400d9d4ebcab279d08a8c190508d82cbd20899 Reviewed-on: https://go-review.googlesource.com/c/go/+/194717 Run-TryBot: Cuong Manh Le <cuong.manhle.vn@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Matthew Dempsky <mdempsky@google.com>
This commit is contained in:
parent
88076ebc92
commit
55c0ad4b62
4 changed files with 108 additions and 4 deletions
|
|
@ -48,6 +48,7 @@ type Node struct {
|
|||
// - OSTRUCTKEY uses it to store the named field's offset.
|
||||
// - Named OLITERALs use it to store their ambient iota value.
|
||||
// - OINLMARK stores an index into the inlTree data structure.
|
||||
// - OCLOSURE uses it to store ambient iota value, if any.
|
||||
// Possibly still more uses. If you find any, document them.
|
||||
Xoffset int64
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue