Commit 8c67ca1a authored by Daniel Martí's avatar Daniel Martí

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: default avatarMatthew Dempsky <mdempsky@google.com>
parent 16d1a8e6
...@@ -609,9 +609,7 @@ func (p *noder) expr(expr syntax.Expr) *Node { ...@@ -609,9 +609,7 @@ func (p *noder) expr(expr syntax.Expr) *Node {
x = unparen(x) // TODO(mdempsky): Needed? x = unparen(x) // TODO(mdempsky): Needed?
if x.Op == OCOMPLIT { if x.Op == OCOMPLIT {
// Special case for &T{...}: turn into (*T){...}. // Special case for &T{...}: turn into (*T){...}.
// TODO(mdempsky): Switch back to p.nod after we x.Right = p.nod(expr, OIND, x.Right, nil)
// get rid of gcCompat.
x.Right = nod(OIND, x.Right, nil)
x.Right.SetImplicit(true) x.Right.SetImplicit(true)
return x return x
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment