]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: replace copytype to setUnderlying
authorMatthew Dempsky <mdempsky@google.com>
Fri, 30 Aug 2019 22:59:16 +0000 (15:59 -0700)
committerMatthew Dempsky <mdempsky@google.com>
Tue, 3 Sep 2019 17:50:54 +0000 (17:50 +0000)
commita71967e4c5aa34f274b8b9aff915f14ac00e7ee8
tree803190cf4660ffa5c842e83d5879f5454f4c6447
parent380ef6b75905400855a170de4f159faec587015e
cmd/compile: replace copytype to setUnderlying

While here, change the params to be easier to understand: "t" is now
always the type being updated, and "underlying" is now used to
represent the underlying type.

Updates #33658.

Change-Id: Iabb64414ca3abaa8c780e4c9093e0c77b76fabf9
Reviewed-on: https://go-review.googlesource.com/c/go/+/192724
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Cuong Manh Le <cuong.manhle.vn@gmail.com>
Reviewed-by: Robert Griesemer <gri@golang.org>
src/cmd/compile/internal/gc/iimport.go
src/cmd/compile/internal/gc/typecheck.go
src/cmd/compile/internal/types/type.go