go.tools/ssa: fix a bug building SSA code for ast.CompositeLit.
Map literals should use the same recursion logic as
struct/array/slice literals to apply an implicit &-operator to
the nested literals when a pointer is wanted.
+ test.
Also:
- ensure we set the source location for all Lookup and
MapUpdate instructions.
- remove obsolete address.object field.
R=gri, crawshaw
CC=golang-dev
https://golang.org/cl/12787048
diff --git a/ssa/ssa.go b/ssa/ssa.go
index c73cc87..4dfe2c6 100644
--- a/ssa/ssa.go
+++ b/ssa/ssa.go
@@ -1121,7 +1121,8 @@
// The MapUpdate instruction updates the association of Map[Key] to
// Value.
//
-// Pos() returns the ast.KeyValueExpr.Colon, if explicit in the source.
+// Pos() returns the ast.KeyValueExpr.Colon or ast.IndexExpr.Lbrack,
+// if explicit in the source.
//
// Example printed form:
// t0[t1] = t2