]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: break out transformations of tcCompLit into transformCompLit
authorDan Scales <danscales@google.com>
Wed, 7 Apr 2021 14:58:10 +0000 (07:58 -0700)
committerDan Scales <danscales@google.com>
Thu, 8 Apr 2021 19:32:37 +0000 (19:32 +0000)
commit46ffbec1d6715f62c724a7180aec12ffd8acf57f
treed8a9085bd0cf1d4307561cbcb256fb30897b3c7d
parentecca94a7d1fb4f00101af9831fcb395ed08b6948
cmd/compile: break out transformations of tcCompLit into transformCompLit

Create transformCompLit, which does the transformations done by
tcCompLit without the typechecking. This removes the final use of the
old typechecker in the noder2 pass.

Other changes:

 - Used the transformCompLit in stringstorunelit(), which creates an
   OCOMPLIT that needs transformation as well.

 - Fixed one place in transformIndex where we were still using
   typecheck.AssignConv, when we should be using its equivalent
   noder.assignconvfn.

The go/test tests always run with -G=3, and I also tested that the "go
test" tests continue to run correctly with -G=3.

Change-Id: I4a976534ab7311cf2a5f43841026dbf7401e62b6
Reviewed-on: https://go-review.googlesource.com/c/go/+/308529
Trust: Dan Scales <danscales@google.com>
Run-TryBot: Dan Scales <danscales@google.com>
Reviewed-by: Robert Griesemer <gri@golang.org>
src/cmd/compile/internal/noder/expr.go
src/cmd/compile/internal/noder/transform.go