]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/compile: don't inline fn with shape params, but passed no shape arg
authorCuong Manh Le <cuong.manhle.vn@gmail.com>
Fri, 25 Mar 2022 16:29:44 +0000 (23:29 +0700)
committerCuong Manh Le <cuong.manhle.vn@gmail.com>
Sat, 14 May 2022 00:29:30 +0000 (00:29 +0000)
commitcb458c05a82aefb253034558b34f16dee8713274
tree45f799b9220c69a3f469fab0c292f5d3cf9bd562
parent21680959f81cd7577a524b960c9b65ce87fa608f
cmd/compile: don't inline fn with shape params, but passed no shape arg

This is the same fix as CL 36126, but for the reverse case, function
with shape params but passed no shape arg. The same conversion problem
may occur in this case, see details explanation there.

Fixes #51909
Fixes #51925

Change-Id: Ib0c1973c7511d85b4918a252c80060f1864180cf
Reviewed-on: https://go-review.googlesource.com/c/go/+/395854
Run-TryBot: Cuong Manh Le <cuong.manhle.vn@gmail.com>
Reviewed-by: David Chase <drchase@google.com>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/cmd/compile/internal/inline/inl.go
test/typeparam/issue51909.go [new file with mode: 0644]
test/typeparam/issue51925.go [new file with mode: 0644]