]> Cypherpunks repositories - gostls13.git/commit
go/internal/gcimporter: simplify unified IR importer
authorMatthew Dempsky <mdempsky@google.com>
Thu, 18 Aug 2022 20:47:43 +0000 (13:47 -0700)
committerMatthew Dempsky <mdempsky@google.com>
Wed, 7 Dec 2022 03:45:50 +0000 (03:45 +0000)
commita3989632031c4282a6770e76516238368035d713
tree8bda9453f074197cf926ace4d564aabb323e0950
parentdddc1ba847467524c397eda22b69862773e9f21a
go/internal/gcimporter: simplify unified IR importer

CL 424854 changed the unified IR writer's handling of type
declarations to write the underlying type rather than the RHS type
expression's type. This in turn allows us to simplify the go/types
importer, because now there's no need to delay caling SetUnderlying.

Fixes #57015.

Change-Id: I80caa61f6cad5b7f9d829939db733a66cfca621c
Reviewed-on: https://go-review.googlesource.com/c/go/+/424876
Reviewed-by: Robert Griesemer <gri@google.com>
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Robert Findley <rfindley@google.com>
src/go/internal/gcimporter/gcimporter_test.go
src/go/internal/gcimporter/testdata/issue57015.go [new file with mode: 0644]
src/go/internal/gcimporter/ureader.go