Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
go/types, types2: add missing Unalias calls in type unifier
The unification code has "early exits" when the compared types are pointer-identical. Because of Alias nodes, we cannot simply compare x == y but we must compare Unalias(x) == Unalias(y). Still, in the common case there are no aliases, so as a minor optimization we write: x == y || Unalias(x) == Unalias(y) to test whether x and y are (pointer-) identical. Add the missing Unalias calls in the place where we forgot them. Fixes #67872. Change-Id: Ia26ffe7205b0417fc698287a4aeb1c900d30cc0d Reviewed-on: https://go-review.googlesource.com/c/go/+/591975 Reviewed-by: Robert Findley <[email protected]> Auto-Submit: Robert Griesemer <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Robert Griesemer <[email protected]>
- Loading branch information