]> Cypherpunks repositories - gostls13.git/commit
cmd/compile/internal/typecheck: simplify checkmake/checkunsafesliceorstring
authorCuong Manh Le <cuong.manhle.vn@gmail.com>
Sun, 8 Sep 2024 15:00:13 +0000 (22:00 +0700)
committerGopher Robot <gobot@golang.org>
Wed, 11 Sep 2024 23:46:33 +0000 (23:46 +0000)
commite6138185db7f0c3390109b3324fc7478f7e20f97
tree06cc6b2cadc1d3310ddc0e90a4cd6bba05ee19ec
parentd7521704cebccd36c16df6f4ac229e3a757ed055
cmd/compile/internal/typecheck: simplify checkmake/checkunsafesliceorstring

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

Change-Id: I4e3fb5d22f9bbc95878c7df2ee3b0eb1819f8dd7
Reviewed-on: https://go-review.googlesource.com/c/go/+/611677
Auto-Submit: Cuong Manh Le <cuong.manhle.vn@gmail.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>
Reviewed-by: Keith Randall <khr@google.com>
src/cmd/compile/internal/typecheck/typecheck.go