]> Cypherpunks repositories - gostls13.git/commit
[dev.typeparams] cmd/compile: make HasShape() more efficient by implementing with...
authorDan Scales <danscales@google.com>
Mon, 2 Aug 2021 03:29:07 +0000 (20:29 -0700)
committerDan Scales <danscales@google.com>
Mon, 2 Aug 2021 17:51:34 +0000 (17:51 +0000)
commit156eeb40a6d918bcac82871af1b8e428a5414159
treed8c5c6953aa8175cd6fad37b4365816a18a27052
parent283991bd7fb5f0004a8d6c27a8b8038e4d448719
[dev.typeparams] cmd/compile: make HasShape() more efficient by implementing with a type flag

Implement HasShape() similar to how HasTParam() is implemented.

Fixes #47456

Change-Id: Icbd538574237faad2c4cd8c8e187725a1df47637
Reviewed-on: https://go-review.googlesource.com/c/go/+/339029
Reviewed-by: Keith Randall <khr@golang.org>
Trust: Dan Scales <danscales@google.com>
src/cmd/compile/internal/typecheck/subr.go
src/cmd/compile/internal/types/type.go