]> Cypherpunks repositories - gostls13.git/commit
[dev.ssa] cmd/compile: fix failed lowerings
authorKeith Randall <khr@golang.org>
Wed, 7 Oct 2015 21:35:25 +0000 (14:35 -0700)
committerKeith Randall <khr@golang.org>
Thu, 8 Oct 2015 18:12:09 +0000 (18:12 +0000)
commit808d7c70d5d5107697e4bfacbf66a80cb1d1e06d
tree6509399f85e6ba95d8dc920f1808e2213fd6667e
parent9aba7e76f605f7c4fad49886e710152730c34b69
[dev.ssa] cmd/compile: fix failed lowerings

One was OAPPEND of large types.  We need to mem-mem copy them
instead of storing them.

Another was pointer-like struct and array types being put in the
data field of an eface.  We need to use the underlying pointer
type for the load that fills in the eface.data field.

Change-Id: Id8278c0381904e52d59011a66ce46386b41b5521
Reviewed-on: https://go-review.googlesource.com/15552
Run-TryBot: Keith Randall <khr@golang.org>
Reviewed-by: David Chase <drchase@google.com>
src/cmd/compile/internal/gc/ssa.go
src/cmd/compile/internal/gc/type.go
src/cmd/compile/internal/ssa/type.go
src/cmd/compile/internal/ssa/type_test.go