]> Cypherpunks repositories - gostls13.git/commit
ssa: clarify semantics of ID-to-PC translation function
authorAndrei Matei <andreimatei1@gmail.com>
Mon, 5 Jun 2023 23:14:01 +0000 (19:14 -0400)
committerDavid Chase <drchase@google.com>
Mon, 20 Nov 2023 16:21:26 +0000 (16:21 +0000)
commite6b154defba046609b6a36313298cfc207945df7
treebf3bdd6892618d14d1e30fbd05b24da6c06b6fcd
parentd33ad2d8f357d83dfdc14c3358e3956aac76a9b0
ssa: clarify semantics of ID-to-PC translation function

Make it clear that the `block` argument is not always used, and stop
passing it in a case where it didn't really make sense - at the end of a
function.

Change-Id: I2fa86bed6ceb53a1b1cbfda5c3392e7e9da9579d
Reviewed-on: https://go-review.googlesource.com/c/go/+/502115
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Than McIntosh <thanm@google.com>
Run-TryBot: David Chase <drchase@google.com>
Reviewed-by: David Chase <drchase@google.com>
src/cmd/compile/internal/ssa/debug.go
src/cmd/compile/internal/ssagen/ssa.go