]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: fix SSA type comparison
authorKeith Randall <khr@golang.org>
Tue, 18 Aug 2020 04:59:07 +0000 (21:59 -0700)
committerKeith Randall <khr@golang.org>
Tue, 18 Aug 2020 05:23:42 +0000 (05:23 +0000)
commita745171e6b30394b661a040d04e8807b4bd0c7da
tree4d37fa49eb61bb831928a1fbd4d6955ccffed2e8
parent613388315e29d4e906805e602602500ca1e7e334
cmd/compile: fix SSA type comparison

A typo in the conversion code caused comparisons of SSA types to
report CMPeq when they were not in fact equal.

Fixes #40837

Change-Id: I0627eee51d524a585908b34a4590bc533c8415fc
Reviewed-on: https://go-review.googlesource.com/c/go/+/248781
Run-TryBot: Keith Randall <khr@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Cuong Manh Le <cuong.manhle.vn@gmail.com>
Reviewed-by: Emmanuel Odeke <emm.odeke@gmail.com>
src/cmd/compile/internal/types/type.go
src/cmd/compile/internal/types/type_test.go [new file with mode: 0644]