]> Cypherpunks repositories - gostls13.git/commit
cmd/compile/internal/ir: mark Addrtaken in NewAddrExpr
authorMatthew Dempsky <mdempsky@google.com>
Fri, 25 Aug 2023 00:21:58 +0000 (17:21 -0700)
committerGopher Robot <gobot@golang.org>
Fri, 25 Aug 2023 16:41:59 +0000 (16:41 +0000)
commit611c3af30d5c7d17c8da3712cd23152c7f0f52ef
tree3c00a8d290b670abfcb300af23591fe599b868a9
parentb036d7e17f1cf5ecf9411e604fbc5bb40dc3dc95
cmd/compile/internal/ir: mark Addrtaken in NewAddrExpr

This CL changes NewAddrExpr to require its operand to always be
typechecked, so it can return an appropriately typechecked node and
mark Addrtaken as appropriate in the process.

Change-Id: I97c1f29305a9abfda35c42a43561c4c15fb5b52e
Reviewed-on: https://go-review.googlesource.com/c/go/+/522879
Reviewed-by: Cuong Manh Le <cuong.manhle.vn@gmail.com>
Auto-Submit: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@google.com>
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
src/cmd/compile/internal/gc/main.go
src/cmd/compile/internal/ir/expr.go
src/cmd/compile/internal/typecheck/expr.go
src/cmd/compile/internal/typecheck/subr.go
src/cmd/compile/internal/typecheck/typecheck.go