For #61035.
Change-Id: I27e2c44f9275b508d9dccc50da80896384a4c8fc
Reviewed-on: https://go-review.googlesource.com/c/go/+/546837
TryBot-Bypass: Robert Griesemer <gri@google.com>
Reviewed-by: Alan Donovan <adonovan@google.com>
Reviewed-by: Robert Griesemer <gri@google.com>
Auto-Submit: Robert Griesemer <gri@google.com>
TODO: <a href="https://go.dev/issue/63223">https://go.dev/issue/63223</a>: API changes to support explicit Alias nodes
</p>
- <p><!-- https://go.dev/issue/61035 -->
- TODO: <a href="https://go.dev/issue/61035">https://go.dev/issue/61035</a>: go/types, types2: fix SizesFor("gc", ...) to match actual gc behavior
+ <p><!-- https://go.dev/issue/61035, multiple CLs, see issue for details -->
+ The implementation of <a href="/pkg/go/types#SizesFor"><code>SizesFor</code></a> has been adjusted to compute
+ the same type sizes as the compiler when the compiler argument for <code>SizesFor</code> is <code>"gc"</code>.
+ The default <a href="/pkg/go/types#Sizes"><code>Sizes</code></a> implementation used by the type checker is now
+ <code>types.SizesFor("gc", "amd64")</code>.
</p>
<p><!-- CL 541575 -->