]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: ensure FuncForPC works on closures that start with NOPs
authorKeith Randall <khr@golang.org>
Tue, 14 Feb 2023 07:27:51 +0000 (23:27 -0800)
committerKeith Randall <khr@google.com>
Fri, 3 Mar 2023 16:35:00 +0000 (16:35 +0000)
commitcbb9cd03f80c0487cee0adcfef9a2a5de9fe2cc1
tree2a9a4bba25b6dbc33ce4fe9a85a06e9aa76666b4
parent5e74bc1a08f43dc98780d02785cfc9c75103c403
cmd/compile: ensure FuncForPC works on closures that start with NOPs

A 0-sized no-op shouldn't prevent us from detecting that the first
instruction is from an inlined callee.

Update #58300

Change-Id: Ic5f6ed108c54a32c05e9b2264b516f2cc17e4619
Reviewed-on: https://go-review.googlesource.com/c/go/+/467977
Run-TryBot: Keith Randall <khr@golang.org>
Reviewed-by: Keith Randall <khr@google.com>
Reviewed-by: David Chase <drchase@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/cmd/compile/internal/ssagen/ssa.go
test/fixedbugs/issue58300b.go [new file with mode: 0644]
test/fixedbugs/issue58300b.out [new file with mode: 0644]