]> Cypherpunks repositories - gostls13.git/commit
cmd/compile/internal/typecheck: simplify tcSlice
authorCuong Manh Le <cuong.manhle.vn@gmail.com>
Sun, 8 Sep 2024 14:45:36 +0000 (21:45 +0700)
committerGopher Robot <gobot@golang.org>
Wed, 11 Sep 2024 22:58:05 +0000 (22:58 +0000)
commitd7521704cebccd36c16df6f4ac229e3a757ed055
tree843f20cfbfb1b127fca9ea2d2309848080112e3c
parent50e536daa18a57d29ece6209320fff5a837a749c
cmd/compile/internal/typecheck: simplify tcSlice

types2 handles all constant-related bounds checks in user Go code now,
so it's safe to remove all constants checking in tcSlice function.

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