]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: keep call's args in elim dead auto pass
authorCherry Zhang <cherryyz@google.com>
Thu, 22 Apr 2021 15:36:29 +0000 (11:36 -0400)
committerCherry Zhang <cherryyz@google.com>
Thu, 22 Apr 2021 16:38:37 +0000 (16:38 +0000)
commite8666abd9884f6743f78229ed210bf12a35e7368
tree1c6cfff8f5e611ebf530c280e7be51ebe8085091
parentd3853fb4e6ee2b9f873ab2e41adc0e62a82e73e4
cmd/compile: keep call's args in elim dead auto pass

If the address of an auto is used in a Call, we need to keep it,
as we keep the Call itself.

Fixes #45693.

Change-Id: Ie548d6dffc95bf916868a8885d4ab4cf9e86355a
Reviewed-on: https://go-review.googlesource.com/c/go/+/312670
Trust: Cherry Zhang <cherryyz@google.com>
Run-TryBot: Cherry Zhang <cherryyz@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: David Chase <drchase@google.com>
src/cmd/compile/internal/ssa/deadstore.go
test/fixedbugs/issue45693.go [new file with mode: 0644]