Passes toolstash -cmp on std cmd.
Change-Id: I17b9a816752af55b064b8e46146b8f5a878fa560
Reviewed-on: https://go-review.googlesource.com/109075
Run-TryBot: Daniel Martí <mvdan@mvdan.cc>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
x = unparen(x) // TODO(mdempsky): Needed?
if x.Op == OCOMPLIT {
// Special case for &T{...}: turn into (*T){...}.
- // TODO(mdempsky): Switch back to p.nod after we
- // get rid of gcCompat.
- x.Right = nod(OIND, x.Right, nil)
+ x.Right = p.nod(expr, OIND, x.Right, nil)
x.Right.SetImplicit(true)
return x
}