]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: assert that function values reference ABIInternal
authorAustin Clements <austin@google.com>
Wed, 24 Mar 2021 14:32:13 +0000 (10:32 -0400)
committerAustin Clements <austin@google.com>
Mon, 29 Mar 2021 18:46:30 +0000 (18:46 +0000)
commit1e8fff0f7b4577dcb7192928e2db4af7a11e9c0e
tree2d8d1ec7f21ef2f4056f140ca35cede2f84e1a29
parent0d1423583b9106d398740862bca4ad5661fd67ad
cmd/compile: assert that function values reference ABIInternal

Function values must always point to the ABIInternal entry point of a
function. It wasn't entirely obvious to me we were getting this right,
so this CL adds checks for this.

Updates #40724.

Change-Id: Idd854e996d63d9151c28ec5c9251b690453b1024
Reviewed-on: https://go-review.googlesource.com/c/go/+/305272
Trust: Austin Clements <austin@google.com>
Run-TryBot: Austin Clements <austin@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
src/cmd/compile/internal/ssagen/ssa.go
src/cmd/compile/internal/staticdata/data.go