mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/compile: call missing popdcl in various genxxx functions
Not calling popdcl doesn't have an impact on generated code but the result is a growing (rather than empty) stack of symbols, possibly causing more data to remain alive than necessary. Also: minor cleanups. Change-Id: Ic4fdbcd8843637d69ab1aa15e896a7e6339bc990 Reviewed-on: https://go-review.googlesource.com/20554 Reviewed-by: Matthew Dempsky <mdempsky@google.com> Run-TryBot: Robert Griesemer <gri@golang.org>
This commit is contained in:
parent
88a21ebb21
commit
157f069873
4 changed files with 13 additions and 6 deletions
|
|
@ -2142,8 +2142,8 @@ func (p *parser) structdcl() []*Node {
|
|||
typ := p.ntype()
|
||||
tag := p.oliteral()
|
||||
|
||||
if l := fields; len(l) == 0 || l[0].Sym.Name == "?" {
|
||||
// ? symbol, during import (list1(nil) == nil)
|
||||
if len(fields) == 0 || fields[0].Sym.Name == "?" {
|
||||
// ? symbol, during import
|
||||
n := typ
|
||||
if n.Op == OIND {
|
||||
n = n.Left
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue