mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
[dev.ssa] Merge remote-tracking branch 'origin/master' into ssamerge
(Last?) Semi-regular merge from tip to dev.ssa. Conflicts: src/cmd/compile/internal/gc/closure.go src/cmd/compile/internal/gc/gsubr.go src/cmd/compile/internal/gc/lex.go src/cmd/compile/internal/gc/pgen.go src/cmd/compile/internal/gc/syntax.go src/cmd/compile/internal/gc/walk.go src/cmd/internal/obj/pass.go Change-Id: Ib5ea8bf74d420f4902a9c6208761be9f22371ae7
This commit is contained in:
commit
4fffd4569d
240 changed files with 4682 additions and 3188 deletions
|
|
@ -475,7 +475,7 @@ func staticassign(l *Node, r *Node, out **NodeList) bool {
|
|||
break
|
||||
|
||||
case OCLOSURE:
|
||||
if r.Func.Cvars == nil {
|
||||
if len(r.Func.Cvars.Slice()) == 0 {
|
||||
// Closures with no captured variables are globals,
|
||||
// so the assignment can be done at link time.
|
||||
n := *l
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue