]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: eliminate uses of Type.Down in alg.go
authorMatthew Dempsky <mdempsky@google.com>
Fri, 11 Mar 2016 04:07:00 +0000 (20:07 -0800)
committerMatthew Dempsky <mdempsky@google.com>
Fri, 11 Mar 2016 05:30:49 +0000 (05:30 +0000)
commitd3794f88e9b4e87567cb3fdc0a42159934db65e0
treede6adaaaf191d2789bb0f55c406236d13ee373a9
parent369f4f5de554b3754a5b0f3140be15bbe2c82615
cmd/compile: eliminate uses of Type.Down in alg.go

This could be done by threading the Iter value down through memrun and
ispaddedfield, but that ends up a bit clunky. This way is also closer
to how we'll want the code to look once fields are kept in slices.

Passes toolstash -cmp.

Change-Id: I8a44445c85f921eb18d97199df2026c5ce0f4f67
Reviewed-on: https://go-review.googlesource.com/20558
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/cmd/compile/internal/gc/alg.go