[dev.typeparams] cmd/compile: switch unified IR from TypeParam.Bound to TypeParam.Constraint

Change-Id: Id68d41f09e78343953167cb1e38fb1ebc41a34d4
Reviewed-on: https://go-review.googlesource.com/c/go/+/338429
Trust: Matthew Dempsky <mdempsky@google.com>
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
Reviewed-by: Robert Griesemer <gri@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
This commit is contained in:
Matthew Dempsky 2021-07-29 15:58:13 -07:00
parent 35dbdda2fe
commit 1d35d8ffa5

View file

@ -618,7 +618,7 @@ func (w *writer) objDict(obj types2.Object, dict *writerDict) {
ntparams := tparams.Len()
w.len(ntparams)
for i := 0; i < ntparams; i++ {
w.typ(tparams.At(i).Type().(*types2.TypeParam).Bound())
w.typ(tparams.At(i).Type().(*types2.TypeParam).Constraint())
}
nderived := len(dict.derived)