]> Cypherpunks repositories - gostls13.git/commit
cmd/compile/internal/ir: remove NilExpr.Sym_
authorCuong Manh Le <cuong.manhle.vn@gmail.com>
Fri, 13 May 2022 12:04:59 +0000 (19:04 +0700)
committerMatthew Dempsky <mdempsky@google.com>
Fri, 13 May 2022 21:28:16 +0000 (21:28 +0000)
commit80f3e3deba619fcf0ddcb547c61c9cbbd8b81968
tree8883a483c65160d81459c776b07d60440143efe1
parent499e334a28c63c15e0b1add8172fd48b3c19e1ce
cmd/compile/internal/ir: remove NilExpr.Sym_

Historically, the compiler used to use a name node to represent "nil".
Now, "nil" is represented by NilExpr, so it's not necessary to associate
a Sym with it anymore.

Passes toolstash-check.

Change-Id: Ied1ddefa06ea55ada18ca52c8fcf71defa4c23b2
Reviewed-on: https://go-review.googlesource.com/c/go/+/406174
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Cuong Manh Le <cuong.manhle.vn@gmail.com>
Reviewed-by: Heschi Kreinick <heschi@google.com>
src/cmd/compile/internal/ir/expr.go
src/cmd/compile/internal/typecheck/universe.go