]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.13] cmd/compile: remove check that Zero's arg has the correct...
authorKeith Randall <khr@golang.org>
Thu, 25 Jun 2020 03:59:18 +0000 (20:59 -0700)
committerDmitri Shuralyov <dmitshur@golang.org>
Fri, 10 Jul 2020 22:19:31 +0000 (22:19 +0000)
commit0b75fc7a92b8973601040eed8d13d8775d099f43
tree18a5fbc78cf51dfdafffac58430cac157dfbd9ad
parent82c1a8705bc586d1d417a4b58b6e07aa01e93ba9
[release-branch.go1.13] 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 #39848

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>
(cherry picked from commit 3b2f67a59702e4881625cb967f853ef56b0c4828)
Reviewed-on: https://go-review.googlesource.com/c/go/+/239998
Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org>
src/cmd/compile/internal/ssa/deadstore.go
test/fixedbugs/issue39459.go [new file with mode: 0644]