]> Cypherpunks repositories - gostls13.git/commit
[dev.regabi] cmd/compile: cleanup preparing for concrete types
authorRuss Cox <rsc@golang.org>
Mon, 7 Dec 2020 19:56:03 +0000 (14:56 -0500)
committerRuss Cox <rsc@golang.org>
Thu, 17 Dec 2020 03:49:41 +0000 (03:49 +0000)
commitfa06894b36054e80e815ee538fb6f72c9e58f14a
treef75a8761f3ace9ff5e4cc9e8809836a1a3b1b2a1
parent4c2d66f642286647b640bced33581e8b1665bfe8
[dev.regabi] cmd/compile: cleanup preparing for concrete types

Avoid using the same variable for two different concrete
Node types in walk. This will smooth the introduction of
specific constructors, replacing ir.Nod and friends.

Passes buildall w/ toolstash -cmp.

Replay of CL 275884, lost to the bad-merge history rewrite.

Change-Id: I05628e20a19c9559ed7478526ef6cb2613f735e5
Reviewed-on: https://go-review.googlesource.com/c/go/+/277954
Trust: Russ Cox <rsc@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
src/cmd/compile/internal/gc/walk.go