]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/ir: remove ConstExpr in favor of BasicLit
authorMatthew Dempsky <mdempsky@google.com>
Wed, 6 Sep 2023 22:52:55 +0000 (15:52 -0700)
committerGopher Robot <gobot@golang.org>
Fri, 8 Sep 2023 18:51:02 +0000 (18:51 +0000)
commit7f1f4a193662f18393ee7a189bccba4f3d1c3a64
tree94c96770bc9bb5919ed1a274ef51e081dc0aae28
parent18c6ec1e4a62d25ce9801174c1c17360eb95233c
cmd/internal/ir: remove ConstExpr in favor of BasicLit

OrigNode will be going away soon, which is the only reason for
ConstExpr to exist. Otherwise, it's identical to BasicLit.

To keep existing code working, change NewConstExpr to construct and
return a BasicLit instead.

Change-Id: I68b43ec1fcaa57e6723f289ce9f953996aeefb14
Reviewed-on: https://go-review.googlesource.com/c/go/+/526395
Reviewed-by: Keith Randall <khr@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Keith Randall <khr@golang.org>
Reviewed-by: Cuong Manh Le <cuong.manhle.vn@gmail.com>
Auto-Submit: Matthew Dempsky <mdempsky@google.com>
src/cmd/compile/internal/ir/expr.go
src/cmd/compile/internal/ir/node_gen.go