]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: fix loclist for heap return vars without optimizations
authorDerek Parker <parkerderek86@gmail.com>
Tue, 22 Jul 2025 22:05:06 +0000 (22:05 +0000)
committerKeith Randall <khr@golang.org>
Wed, 23 Jul 2025 03:03:43 +0000 (20:03 -0700)
commit71c2bf551303930faa32886446910fa5bd0a701a
tree36ac7d91340a2f2cc603017bb5ebbfbb8d440b75
parentc74399e7f5e763e6c25978d090122a0a73a695ee
cmd/compile: fix loclist for heap return vars without optimizations

When compiling without optimizations certain variables such as
return params end up missing location lists.

Fixes #65405

Change-Id: Id4ec6b1ab6681fd77b8fefb47a4ec05060c128ef
GitHub-Last-Rev: 5ab6a5398162119dd0cd5325f4239b4559b030bd
GitHub-Pull-Request: golang/go#74398
Reviewed-on: https://go-review.googlesource.com/c/go/+/684377
Reviewed-by: Michael Knyszek <mknyszek@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Keith Randall <khr@golang.org>
Reviewed-by: Keith Randall <khr@google.com>
src/cmd/compile/internal/dwarfgen/dwarf.go
src/cmd/compile/internal/ssa/debug.go
src/cmd/compile/internal/ssagen/ssa.go
src/cmd/link/dwarf_test.go
src/cmd/link/testdata/dwarf/issue65405/main.go [new file with mode: 0644]