]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: change ir.NewCompLitExpr from Ntype to *types.Type
authorMatthew Dempsky <mdempsky@google.com>
Tue, 3 May 2022 01:02:22 +0000 (18:02 -0700)
committerMatthew Dempsky <mdempsky@google.com>
Thu, 5 May 2022 18:48:32 +0000 (18:48 +0000)
commit3ffc230a9fb6f2a2326cf64017eaa7cc4582a8d3
treeab3b4362773f2ffd4e08817544b60c4b2034922d
parenta6a49d128bbd67051c2246fbb9abae85c8601a5d
cmd/compile: change ir.NewCompLitExpr from Ntype to *types.Type

All callers were already using TypeNode to get an Ntype anyway, so
just push the TypeNode constructor down into NewCompLitExpr. Prep
refactoring for next CL to remove the Ntype field.

Change-Id: I671935afca707aaab11d1c46e39902bd37a485ba
Reviewed-on: https://go-review.googlesource.com/c/go/+/403840
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: David Chase <drchase@google.com>
Reviewed-by: Cuong Manh Le <cuong.manhle.vn@gmail.com>
src/cmd/compile/internal/ir/expr.go
src/cmd/compile/internal/noder/reader.go
src/cmd/compile/internal/noder/transform.go
src/cmd/compile/internal/typecheck/func.go
src/cmd/compile/internal/typecheck/iimport.go
src/cmd/compile/internal/typecheck/typecheck.go
src/cmd/compile/internal/walk/closure.go
src/cmd/compile/internal/walk/expr.go