diff options
author | Matthew Dempsky <mdempsky@google.com> | 2018-03-08 02:22:26 -0800 |
---|---|---|
committer | Matthew Dempsky <mdempsky@google.com> | 2018-03-08 18:22:13 +0000 |
commit | 6a5cfa8b63fcea71da941a60036ce3c6f22d8764 (patch) | |
tree | 8ae62c8e393419de097ac0bb7e8ca8e553afd1cd /src/cmd/compile/internal/gc/init.go | |
parent | 8b766e5d09bc4bf2e4fc365111b60a400b144f83 (diff) | |
download | go-git-6a5cfa8b63fcea71da941a60036ce3c6f22d8764.tar.gz |
cmd/compile: remove two out-of-phase calls to walk
All calls to walkstmt/walkexpr/etc should be rooted from funccompile,
whereas transformclosure and fninit are called by main.
Passes toolstash-check.
Change-Id: Ic880e2d2d83af09618ce4daa8e7716f6b389e53e
Reviewed-on: https://go-review.googlesource.com/99418
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src/cmd/compile/internal/gc/init.go')
-rw-r--r-- | src/cmd/compile/internal/gc/init.go | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/cmd/compile/internal/gc/init.go b/src/cmd/compile/internal/gc/init.go index 180cbcfda2..ea42664ba2 100644 --- a/src/cmd/compile/internal/gc/init.go +++ b/src/cmd/compile/internal/gc/init.go @@ -182,7 +182,6 @@ func fninit(n []*Node) { loop.Ninit.Set1(zero) loop = typecheck(loop, Etop) - loop = walkstmt(loop) r = append(r, loop) } |