tools/go/ssa/testdata
Alan Donovan 33fcc815f2 go/ssa: fix incorrect SSA code for composite literals
Composite literals are initialized in place where possible, but in
cases the initializer expression refers to the variable that
is being updated

	x = T{a: x.a}

we must ensure that the RHS is fully evaluated before we execute any
stores to x.  This means we need to record the sequence of stores in a
"store buffer" and execute it only once the entire composite literal
has been evaluated.

Fixes issue #10127

Change-Id: If94e3b179beb25feea5b298ed43de6a199aaf347
Reviewed-on: https://go-review.googlesource.com/7533
Reviewed-by: Robert Griesemer <gri@golang.org>
2015-03-17 14:26:39 +00:00
..
objlookup.go go/ssa: simplify make([]T, len, k) to new([k]T)[:len] for constant k 2014-12-29 21:06:17 +00:00
valueforexpr.go go/ssa: fix incorrect SSA code for composite literals 2015-03-17 14:26:39 +00:00