]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: simplify walk OCONVIFACE
authorJosh Bleecher Snyder <josharian@gmail.com>
Mon, 5 Nov 2018 23:42:14 +0000 (15:42 -0800)
committerJosh Bleecher Snyder <josharian@gmail.com>
Sat, 10 Nov 2018 13:39:01 +0000 (13:39 +0000)
commitfe2c588b1c70ed8c6de45a601855a107968a327d
tree825ef56297ba09c39b7b17f33a8166fa096c3d80
parent6dd70fc5e391eb7a47be5eb6353107f38b73f161
cmd/compile: simplify walk OCONVIFACE

n.Type and n.Left.Type are used heavily. Give them useful names.

We generate the type word frequently. Make it a closure.
(We don't want to generate it up front, since there are some code
paths that don't need it, and generating it has side-effects.)

Simplify and document the final call construction.

Follow-up to address feedback on CL 147360.

Change-Id: I251134a55cf80d8b1676280a345d150f2288c09a
Reviewed-on: https://go-review.googlesource.com/c/147538
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Martin Möhrmann <moehrmann@google.com>
src/cmd/compile/internal/gc/walk.go