go/go
Alan Donovan 6db8a00c75 go.tools/go/ssa: write zero value when storing a composite literal in-place if necessary
Previously, statements such as:

type T struct { a, b int }
[...]
x = T{}
x = T{b: 1}

would only affect the aggregate members mentioned in the composite
literal and leave the other members unchanged. This change causes us
to write a zero value to the target in cases where the target is not
already known to hold a zero value and the number of initializers in
the composite literal differs from the number of elements in its type.

Author: Peter Collingbourne.  (hg clpatch got confused)

LGTM=pcc
R=pcc
CC=golang-codereviews
https://golang.org/cl/107980045
2014-06-16 12:29:30 -04:00
..
callgraph go/callgraph: fix asymptote trap in DeleteSyntheticNodes. 2014-05-08 14:03:06 -04:00
exact go.tools/go/types, exact: fix build for 1.2 2014-06-12 12:46:21 -07:00
gccgoimporter go.tools/go/gccgoimporter: use gccgo -dumpversion 2014-04-17 13:40:42 -07:00
gcimporter go.tools/go/types: internal cleanups 2014-02-20 14:52:21 -08:00
importer go.tools/go/importer: record low-level encoding format 2014-03-31 09:49:52 -07:00
loader go/loader: make (*Config).Load() robust against I/O, scanner and parser errors. 2014-06-13 11:32:46 -04:00
pointer go/ssa: make Builtin capable of representing non-spec-defined intrinsics. 2014-06-13 17:34:07 -04:00
ssa go.tools/go/ssa: write zero value when storing a composite literal in-place if necessary 2014-06-16 12:29:30 -04:00
types go.tools/go/types/typeutil: use reflect instead of unsafe 2014-06-14 12:45:55 +10:00
vcs go.tools: fix various minor issues found by go vet 2014-05-19 08:47:28 -07:00