]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: fix bounds check report
authorKeith Randall <khr@golang.org>
Tue, 9 Sep 2025 05:04:40 +0000 (22:04 -0700)
committerKeith Randall <khr@golang.org>
Tue, 9 Sep 2025 14:37:40 +0000 (07:37 -0700)
commitaf03343f934b50f64389aa4222a2a111a125f69f
treeac43926ceecd66d4ce476a19456c248a4cb3cc41
parent6447ff409ac7e2a621bc8ca5c44b2eaed751fbaa
cmd/compile: fix bounds check report

For constant-index, variable length situations.

Inadvertant shadowing of the yVal variable. Oops.

Fixes #75327

Change-Id: I3403066fc39b7664222a3098cf0f22b5761ea66a
Reviewed-on: https://go-review.googlesource.com/c/go/+/702015
Reviewed-by: Cuong Manh Le <cuong.manhle.vn@gmail.com>
Reviewed-by: David Chase <drchase@google.com>
Reviewed-by: Keith Randall <khr@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/cmd/compile/internal/amd64/ssa.go
src/cmd/compile/internal/arm/ssa.go
src/cmd/compile/internal/arm64/ssa.go
src/cmd/compile/internal/loong64/ssa.go
src/cmd/compile/internal/mips/ssa.go
src/cmd/compile/internal/mips64/ssa.go
src/cmd/compile/internal/ppc64/ssa.go
src/cmd/compile/internal/riscv64/ssa.go
src/cmd/compile/internal/s390x/ssa.go
src/cmd/compile/internal/x86/ssa.go
test/fixedbugs/issue75327.go [new file with mode: 0644]