]> Cypherpunks repositories - gostls13.git/commit
[dev.typeparams] cmd/compile: use r.hasTypeParams in typIdx
authorCuong Manh Le <cuong.manhle.vn@gmail.com>
Wed, 23 Jun 2021 16:56:01 +0000 (23:56 +0700)
committerCuong Manh Le <cuong.manhle.vn@gmail.com>
Thu, 24 Jun 2021 11:47:47 +0000 (11:47 +0000)
commitb55cc6687d8f805663e9e803ad5293d1b399ce37
tree13e4b9ccb53ee9b16f20e4598b4595073c75155d
parent9bdbf73c98b21c602f1304993176a6db0714f802
[dev.typeparams] cmd/compile: use r.hasTypeParams in typIdx

CL 329571 fold the checking has type params logic, but did not realize
that the instance in typIdx can be folded, too.

Change-Id: I4682af3779535af6a6e843972cada12ba1bae6ae
Reviewed-on: https://go-review.googlesource.com/c/go/+/330389
Trust: Cuong Manh Le <cuong.manhle.vn@gmail.com>
Run-TryBot: Cuong Manh Le <cuong.manhle.vn@gmail.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
src/cmd/compile/internal/noder/reader.go