]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: don't optimize away a panicing interface comparison
authorKeith Randall <khr@golang.org>
Wed, 22 Oct 2025 17:13:44 +0000 (10:13 -0700)
committerKeith Randall <khr@golang.org>
Tue, 28 Oct 2025 17:24:14 +0000 (10:24 -0700)
commitbd4dc413cd80d3c160e875686e1be1eae5d48d4b
tree5bcdfde599c4c70d7bc9d8e799cba84addb4021d
parent30c047d0d06cdbc2983e86daaa3b0bc1afb86706
cmd/compile: don't optimize away a panicing interface comparison

We can't do direct pointer comparisons if the type is not a
comparable type.

Fixes #76008

Change-Id: I1687acff21832d2c2e8f3b875e7b5ec125702ef3
Reviewed-on: https://go-review.googlesource.com/c/go/+/713840
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: David Chase <drchase@google.com>
Reviewed-by: Cuong Manh Le <cuong.manhle.vn@gmail.com>
Reviewed-by: Keith Randall <khr@google.com>
src/cmd/compile/internal/ssa/rewrite.go
test/fixedbugs/issue76008.go [new file with mode: 0644]