aboutsummaryrefslogtreecommitdiff
path: root/test/live.go
diff options
context:
space:
mode:
authorMatthew Dempsky <mdempsky@google.com>2020-12-01 03:52:20 -0800
committerMatthew Dempsky <mdempsky@google.com>2020-12-01 17:16:53 +0000
commit6ca23a45feebc8672a1851dbc65c5b34d481ca30 (patch)
tree04e05c89b37a93df37575c7a0db2c499f7eb8efc /test/live.go
parenta17c5e2fce9340ec19d4019490b38a7645f244df (diff)
downloadgo-6ca23a45feebc8672a1851dbc65c5b34d481ca30.tar.gz
go-6ca23a45feebc8672a1851dbc65c5b34d481ca30.zip
[dev.regabi] cmd/compile: only save ONAMEs on Curfn.Dcl
There's not really any use to tracking function-scoped constants and types on Curfn.Dcl, and there's sloppy code that assumes all of the declarations are variables (e.g., cmpstackvarlt). Change-Id: I5d10dc681dac2c161c7b73ba808403052ca0608e Reviewed-on: https://go-review.googlesource.com/c/go/+/274436 Reviewed-by: Russ Cox <rsc@golang.org> Trust: Matthew Dempsky <mdempsky@google.com>
Diffstat (limited to 'test/live.go')
-rw-r--r--test/live.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/live.go b/test/live.go
index 3df7ab01af..d52ce7f007 100644
--- a/test/live.go
+++ b/test/live.go
@@ -718,5 +718,5 @@ func f44(f func() [2]*int) interface{} { // ERROR "live at entry to f44: f"
}
ret := T{}
ret.s[0] = f()
- return ret // ERROR "stack object .autotmp_5 T"
+ return ret // ERROR "stack object .autotmp_[0-9]+ T"
}