go/test/typeparam/issue50598.dir
Dan Scales b41185c5c3 cmd/compile: add call to ImportedBody() when exporting shape inst body
When we export a shape instantiation, because a particular
fully-instantiated type is needed by an inlineable function, we possibly
export the body of the instantiation, if it is inlineable. In this case,
we should have been calling ImportedBody() to make sure that the
function body had already been read in (if it is actually imported from
another package).

Fixes #50598

Change-Id: I512d2bcc745faa6ff3a97e25bc8f46e2c2643d23
Reviewed-on: https://go-review.googlesource.com/c/go/+/378494
Trust: Dan Scales <danscales@google.com>
Run-TryBot: Dan Scales <danscales@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Cuong Manh Le <cuong.manhle.vn@gmail.com>
Reviewed-by: Keith Randall <khr@golang.org>
2022-01-14 16:41:18 +00:00
..
a0.go cmd/compile: add call to ImportedBody() when exporting shape inst body 2022-01-14 16:41:18 +00:00
a1.go cmd/compile: add call to ImportedBody() when exporting shape inst body 2022-01-14 16:41:18 +00:00
a2.go cmd/compile: add call to ImportedBody() when exporting shape inst body 2022-01-14 16:41:18 +00:00
main.go cmd/compile: add call to ImportedBody() when exporting shape inst body 2022-01-14 16:41:18 +00:00