]> Cypherpunks.ru repositories - gostls13.git/commit
[dev.regabi] cmd/compile: disallow taking address of SSA'd values
authorMatthew Dempsky <mdempsky@google.com>
Mon, 25 Jan 2021 22:14:10 +0000 (14:14 -0800)
committerMatthew Dempsky <mdempsky@google.com>
Mon, 25 Jan 2021 22:46:58 +0000 (22:46 +0000)
commit7eaaf28caee0442f2376735ac28de252c7f4baae
treed926fb721783e515a8bb7de37bc6ae79943cb74f
parent6f5e79f470e8956e1c01cb93802d52aee5c307b5
[dev.regabi] cmd/compile: disallow taking address of SSA'd values

Adds some extra validation that the frontend is setting flags like
Addrtaken correctly.

Change-Id: Iffde83e32ba1c4c917ab8cb3fe410a4f623cf635
Reviewed-on: https://go-review.googlesource.com/c/go/+/286434
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Trust: Matthew Dempsky <mdempsky@google.com>
Reviewed-by: Keith Randall <khr@golang.org>
src/cmd/compile/internal/ssagen/ssa.go