tools/go
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
..
ast/astutil astutil: move to go/ast/astutil 2015-01-13 15:47:47 +00:00
buildutil go/buildutil: use chan (not func) in the ForEachPackage API 2015-03-05 20:14:20 +00:00
callgraph go/loader: rename SourceImports flag to ImportFromBinary and invert sense 2015-02-23 23:01:10 +00:00
exact tools: add import comments. 2014-12-09 22:42:16 +00:00
gccgoimporter go/gccgoimporter: disable test case (fix build, at least partially) 2015-02-12 21:45:02 +00:00
gcimporter tools: add import comments. 2014-12-09 22:42:16 +00:00
importer tools: add import comments. 2014-12-09 22:42:16 +00:00
loader go/loader: support relative imports like the go tool does 2015-03-12 18:51:46 +00:00
pointer go/loader: rename SourceImports flag to ImportFromBinary and invert sense 2015-02-23 23:01:10 +00:00
ssa go/ssa: fix incorrect SSA code for composite literals 2015-03-17 14:26:39 +00:00
types go/types: typecheck loop body even if range clause is broken 2015-03-13 23:02:41 +00:00
vcs go/vcs: fix bug in remote package discovery 2015-01-10 08:10:09 +00:00