]> Cypherpunks repositories - gostls13.git/commit
cmd/compile/internal/typecheck: simplify IndexConst
authorCuong Manh Le <cuong.manhle.vn@gmail.com>
Sun, 8 Sep 2024 14:33:55 +0000 (21:33 +0700)
committerGopher Robot <gobot@golang.org>
Wed, 11 Sep 2024 17:13:48 +0000 (17:13 +0000)
commit2d9255b0eae02861ccae38e54c174624138c1693
tree0ad9d9d720726660457cb708927c0da5e5137171
parent820329508aa55ccbb90996e8840acb5859f84557
cmd/compile/internal/typecheck: simplify IndexConst

types2 handles all constant-related bounds checks in user Go code now,
so it's safe to remove the check in IndexConst function.

Change-Id: I9116493f191c4df1cce7e43c8ac3dc5bf020fd5c
Reviewed-on: https://go-review.googlesource.com/c/go/+/611675
Auto-Submit: Cuong Manh Le <cuong.manhle.vn@gmail.com>
Reviewed-by: Keith Randall <khr@google.com>
Reviewed-by: Tim King <taking@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Keith Randall <khr@golang.org>
src/cmd/compile/internal/staticinit/sched.go
src/cmd/compile/internal/typecheck/const.go
src/cmd/compile/internal/typecheck/typecheck.go
src/cmd/compile/internal/walk/builtin.go
src/cmd/compile/internal/walk/complit.go