]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/compile/internal/importer: enable aliases
authorTim King <taking@google.com>
Fri, 9 Aug 2024 17:50:00 +0000 (10:50 -0700)
committerTim King <taking@google.com>
Thu, 15 Aug 2024 20:16:34 +0000 (20:16 +0000)
Flips the pkgReader.enableAlias flag to true when reading unified IR.
This was disabled while resolving #66873. This resolves the TODO to
flip it back to true.

Updates #66873
Updates #68778

Change-Id: Ifd52b0f9510d6bcf151de1c9a18d71ab548c14e4
Reviewed-on: https://go-review.googlesource.com/c/go/+/604099
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: David Chase <drchase@google.com>
src/cmd/compile/internal/importer/ureader.go

index d3c7d4516f7ee81a48c26679a846e145e7e12b40..e8d3e20cee969a141badb30f83fe699dd935de77 100644 (file)
@@ -28,11 +28,9 @@ func ReadPackage(ctxt *types2.Context, imports map[string]*types2.Package, input
        pr := pkgReader{
                PkgDecoder: input,
 
-               ctxt:    ctxt,
-               imports: imports,
-               // Currently, the compiler panics when using Alias types.
-               // TODO(gri) set to true once this is fixed (issue #66873)
-               enableAlias: false,
+               ctxt:        ctxt,
+               imports:     imports,
+               enableAlias: true,
 
                posBases: make([]*syntax.PosBase, input.NumElems(pkgbits.RelocPosBase)),
                pkgs:     make([]*types2.Package, input.NumElems(pkgbits.RelocPkg)),