]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/compile: mark unused values as invalid to prevent problems in expandCalls
authorDavid Chase <drchase@google.com>
Fri, 2 Apr 2021 16:33:23 +0000 (12:33 -0400)
committerDavid Chase <drchase@google.com>
Fri, 2 Apr 2021 17:58:59 +0000 (17:58 +0000)
commit254948a50e12aac1059816a1575ccef1b3892723
treef37c3cf22892f2fa72f0c4a1f1552286bba505ce
parent28c5fed5576483cc696db233d7f6fffecd2833a2
cmd/compile: mark unused values as invalid to prevent problems in expandCalls

Leftover values that have been replaced can cause problems in later
passes (within expandCalls).  For example, a struct select that
itself yields a struct will have a problematic rewrite, if the chance
is presented.

Updates #40724.

Change-Id: I1b445c47c301c3705f7fc0a9d39f1f5c84f4e190
Reviewed-on: https://go-review.googlesource.com/c/go/+/306869
Trust: David Chase <drchase@google.com>
Run-TryBot: David Chase <drchase@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
Reviewed-by: Than McIntosh <thanm@google.com>
src/cmd/compile/internal/ssa/expand_calls.go
test/abi/zombie_struct_select.go [new file with mode: 0644]