]> Cypherpunks.ru repositories - gostls13.git/commit
go/types, types2: avoid recursive invocation when unifying underlying types
authorRobert Griesemer <gri@golang.org>
Thu, 2 Feb 2023 04:30:35 +0000 (20:30 -0800)
committerGopher Robot <gobot@golang.org>
Thu, 2 Feb 2023 14:52:39 +0000 (14:52 +0000)
commitd871f63bcfa4d32ec442afa0f2a190543f94073f
tree58a554bab992e8eb63b4b11921e4b677ca1f9e92
parent756a8ac91a7d26becb8f3c5c8e8fbdbae0eb77e2
go/types, types2: avoid recursive invocation when unifying underlying types

There's no need to invoke unifier.nify recursively when we decide to
unify underlying types. Just update the respective type variable and
continue.

Change-Id: I3abe335464786dc509d18651dff14b20022c7d63
Reviewed-on: https://go-review.googlesource.com/c/go/+/464347
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Robert Griesemer <gri@google.com>
Auto-Submit: Robert Griesemer <gri@google.com>
Reviewed-by: Robert Findley <rfindley@google.com>
Run-TryBot: Robert Griesemer <gri@google.com>
src/cmd/compile/internal/types2/unify.go
src/go/types/unify.go