]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/compile: remove types2.(*Selection).TArgs(), now that instance bug seems fixed
authorDan Scales <danscales@google.com>
Thu, 4 Mar 2021 20:09:04 +0000 (12:09 -0800)
committerDan Scales <danscales@google.com>
Thu, 4 Mar 2021 23:37:01 +0000 (23:37 +0000)
commit96a96a9058004af531db56dee26d82af08321cdb
tree83982a0a02c0e1a3799baa7c670f46ca5fa98fc0
parentd891ebdce1ac2c72e1d923c24f5a65ec14ba7cf8
cmd/compile: remove types2.(*Selection).TArgs(), now that instance bug seems fixed

Previously, we would sometimes see an internal (*instance) type for a
receiver of a types2 method, which was a bug. To deal with that, we put
in an extra (*Selection).TArgs() method. However, that (*instance) type
is no longer showing up for receivers, so we can remove the types2
method we added and do the work with existing types2 API methods.

Change-Id: I03e68f5bbaaf82fe706b6efecbb02e951bbd3cd4
Reviewed-on: https://go-review.googlesource.com/c/go/+/298869
Run-TryBot: Dan Scales <danscales@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Robert Griesemer <gri@golang.org>
Trust: Dan Scales <danscales@google.com>
src/cmd/compile/internal/noder/expr.go
src/cmd/compile/internal/types2/selection.go