Commit fd5ba54f authored by Matthew Dempsky's avatar Matthew Dempsky

cmd/compile: stop exporting OPTRLIT

Removes TODO left by previous commit to appease toolstash.

Change-Id: I5c0bf25f21ba5c0abe3b1b2ed0b17c604717f39b
Reviewed-on: https://go-review.googlesource.com/c/go/+/197121Reviewed-by: default avatarRobert Griesemer <gri@golang.org>
parent 00b773a4
...@@ -1181,10 +1181,9 @@ func (w *exportWriter) expr(n *Node) { ...@@ -1181,10 +1181,9 @@ func (w *exportWriter) expr(n *Node) {
// should have been resolved by typechecking - handled by default case // should have been resolved by typechecking - handled by default case
case OPTRLIT: case OPTRLIT:
w.op(OPTRLIT) // TODO(mdempsky): Replace with OADDR. w.op(OADDR)
w.pos(n.Pos) w.pos(n.Pos)
w.expr(n.Left) w.expr(n.Left)
w.bool(false)
case OSTRUCTLIT: case OSTRUCTLIT:
w.op(OSTRUCTLIT) w.op(OSTRUCTLIT)
......
...@@ -801,10 +801,8 @@ func (r *importReader) node() *Node { ...@@ -801,10 +801,8 @@ func (r *importReader) node() *Node {
// case OCLOSURE: // case OCLOSURE:
// unimplemented // unimplemented
case OPTRLIT: // case OPTRLIT:
n := nodl(r.pos(), OADDR, r.expr(), nil) // unreachable - mapped to case OADDR below by exporter
_ = r.bool()
return n
case OSTRUCTLIT: case OSTRUCTLIT:
// TODO(mdempsky): Export position information for OSTRUCTKEY nodes. // TODO(mdempsky): Export position information for OSTRUCTKEY nodes.
......
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