Descriptiongo.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.
Patch Set 1 #Patch Set 2 : diff -r 8e2bdfe0a5aa https://code.google.com/p/go.tools #
Total comments: 19
Patch Set 3 : diff -r 8e2bdfe0a5aa https://code.google.com/p/go.tools #
MessagesTotal messages: 4
|