]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: cgen_append can handle complex targets
authorKeith Randall <khr@golang.org>
Tue, 7 Jun 2016 22:43:48 +0000 (15:43 -0700)
committerKeith Randall <khr@golang.org>
Wed, 8 Jun 2016 00:01:09 +0000 (00:01 +0000)
commitafad74ec30c208f7cab08b7b80081adc7591dcb3
treecdeef27a45caf503b7aec19aa9bba6992b097fe8
parent41dd1696ab13755bf7a129e0c73523ffb9fcbe66
cmd/compile: cgen_append can handle complex targets

Post-liveness fix, the slices on both sides can now be
indirects of & variables.  The cgen code handles those
cases just fine.

Fixes #15988

Change-Id: I378ad1d5121587e6107a9879c167291a70bbb9e4
Reviewed-on: https://go-review.googlesource.com/23863
Run-TryBot: Keith Randall <khr@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com>
src/cmd/compile/internal/gc/cgen.go
test/fixedbugs/issue15988.go [new file with mode: 0644]