diff options
| author | Derek Parker <parkerderek86@gmail.com> | 2025-07-22 22:05:06 +0000 |
|---|---|---|
| committer | Keith Randall <khr@golang.org> | 2025-07-22 20:03:43 -0700 |
| commit | 71c2bf551303930faa32886446910fa5bd0a701a (patch) | |
| tree | 36ac7d91340a2f2cc603017bb5ebbfbb8d440b75 /src/cmd/link/testdata | |
| parent | c74399e7f5e763e6c25978d090122a0a73a695ee (diff) | |
| download | go-71c2bf551303930faa32886446910fa5bd0a701a.tar.xz | |
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>
Diffstat (limited to 'src/cmd/link/testdata')
| -rw-r--r-- | src/cmd/link/testdata/dwarf/issue65405/main.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/cmd/link/testdata/dwarf/issue65405/main.go b/src/cmd/link/testdata/dwarf/issue65405/main.go new file mode 100644 index 0000000000..f76e464b23 --- /dev/null +++ b/src/cmd/link/testdata/dwarf/issue65405/main.go @@ -0,0 +1,8 @@ +package main + +import "net/http" + +func main() { + http.Handle("/", http.StripPrefix("/static/", http.FileServer(http.Dir("./output")))) + http.ListenAndServe(":8000", nil) +} |
