mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/compile: allow VARDEF at top level
This was missed as part of adding a top-level VARDEF for stack tracing (CL 134156). Fixes #28055 Change-Id: Id14748dfccb119197d788867d2ec6a3b3c9835cf Reviewed-on: https://go-review.googlesource.com/c/140304 Run-TryBot: Keith Randall <khr@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Alberto Donizetti <alb.donizetti@gmail.com>
This commit is contained in:
parent
f90e89e675
commit
6933d76a7e
2 changed files with 17 additions and 0 deletions
|
|
@ -211,6 +211,7 @@ func walkstmt(n *Node) *Node {
|
|||
ODCLCONST,
|
||||
ODCLTYPE,
|
||||
OCHECKNIL,
|
||||
OVARDEF,
|
||||
OVARKILL,
|
||||
OVARLIVE:
|
||||
break
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue