mirror of
https://github.com/golang/go
synced 2024-11-18 16:54:43 -07:00
cmd/compile: apply TODO now that gcCompat is gone
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>
This commit is contained in:
parent
16d1a8e6e3
commit
8c67ca1a99
@ -609,9 +609,7 @@ func (p *noder) expr(expr syntax.Expr) *Node {
|
||||
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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user