]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: remove typecheck.EvalConst
authorCuong Manh Le <cuong.manhle.vn@gmail.com>
Mon, 20 Feb 2023 05:49:03 +0000 (12:49 +0700)
committerGopher Robot <gobot@golang.org>
Mon, 17 Apr 2023 13:44:43 +0000 (13:44 +0000)
commit25bc96dbd2448470da92e0f1393e5d5a82013c8c
tree88cdb4234d0d72f7ae3b82f5649ee613409efaff
parent13f0b8f421bb37f5c9307eefe2b0c9fdb81c9ed1
cmd/compile: remove typecheck.EvalConst

types2 has already done most of the constant folding parts. The only
case left is unsafe.{Alignoff,Offsetof,Sizeof} with variable size
argument, which is handled separately during typecheck.

Change-Id: I8050b7613a16b19b91751726ac07253333177f73
Reviewed-on: https://go-review.googlesource.com/c/go/+/469595
Reviewed-by: Keith Randall <khr@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: David Chase <drchase@google.com>
Auto-Submit: Cuong Manh Le <cuong.manhle.vn@gmail.com>
Reviewed-by: Keith Randall <khr@golang.org>
Run-TryBot: Cuong Manh Le <cuong.manhle.vn@gmail.com>
src/cmd/compile/internal/typecheck/const.go
src/cmd/compile/internal/typecheck/typecheck.go