aboutsummaryrefslogtreecommitdiff
path: root/test/live_regabi.go
diff options
context:
space:
mode:
authorMatthew Dempsky <mdempsky@google.com>2021-06-24 12:57:20 -0700
committerMatthew Dempsky <mdempsky@google.com>2021-06-24 20:28:44 +0000
commit808dca3b2d305570b3f1e003ff221557405f59b9 (patch)
treebfc0e56a604e7446aefc0d19ec333325c98f5afa /test/live_regabi.go
parentddb09af1b85ee9ae278ef338df56c4d91c1acd0d (diff)
downloadgo-808dca3b2d305570b3f1e003ff221557405f59b9.tar.gz
go-808dca3b2d305570b3f1e003ff221557405f59b9.zip
[dev.typeparams] cmd/compile: suppress liveness diagnostics of wrappers
Similar to the previous CL to suppress escape analysis diagnostics for method wrappers, suppress liveness analysis diagnostics too. It's hardly useful to know that all of a wrapper method's arguments are live at entry. Change-Id: I0d1e44552c6334ee3b454adc107430232abcb56a Reviewed-on: https://go-review.googlesource.com/c/go/+/330749 Trust: Matthew Dempsky <mdempsky@google.com> Run-TryBot: Matthew Dempsky <mdempsky@google.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Cuong Manh Le <cuong.manhle.vn@gmail.com>
Diffstat (limited to 'test/live_regabi.go')
-rw-r--r--test/live_regabi.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/live_regabi.go b/test/live_regabi.go
index c35a27e4e0..d362ee287d 100644
--- a/test/live_regabi.go
+++ b/test/live_regabi.go
@@ -683,7 +683,7 @@ type T struct{}
func (*T) Foo(ptr *int) {}
-type R struct{ *T } // ERRORAUTO "live at entry to \(\*R\)\.Foo: \.this ptr" "live at entry to R\.Foo: \.this ptr"
+type R struct{ *T }
// issue 18860: output arguments must be live all the time if there is a defer.
// In particular, at printint r must be live.