]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: remove check that Zero's arg has the correct base type
authorKeith Randall <khr@golang.org>
Thu, 25 Jun 2020 03:59:18 +0000 (20:59 -0700)
committerKeith Randall <khr@golang.org>
Thu, 25 Jun 2020 15:59:48 +0000 (15:59 +0000)
commit3b2f67a59702e4881625cb967f853ef56b0c4828
treebe1098801450024a8e0f0111866b61d2752e3caf
parent334752dc8207d6d19d9fb1a99d2e97f7d326c82a
cmd/compile: remove check that Zero's arg has the correct base type

It doesn't have to. The type in the aux field is authoritative.
There are cases involving casting from interface{} where pointers
have a placeholder pointer type (because the type is not known when
the IData op is generated).

The check was introduced in CL 13447.

Fixes #39459

Change-Id: Id77a57577806a271aeebd20bea5d92d08ee7aa6b
Reviewed-on: https://go-review.googlesource.com/c/go/+/239817
Run-TryBot: Keith Randall <khr@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: David Chase <drchase@google.com>
src/cmd/compile/internal/ssa/deadstore.go
test/fixedbugs/issue39459.go [new file with mode: 0644]