mirror of
https://github.com/golang/go
synced 2024-09-15 22:20:06 +00:00
cmd/compile/internal/ssa: fix a == a
to a == b
Change-Id: I4ee4f702e1bfc9ad9ea899c255104d5e18cf2c96 Reviewed-on: https://go-review.googlesource.com/135838 Reviewed-by: Keith Randall <khr@golang.org> Run-TryBot: Iskander Sharipov <iskander.sharipov@intel.com> TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
parent
c6bf9a8109
commit
9850ad045f
|
@ -484,7 +484,7 @@ func (x ByTopo) Swap(i, j int) { x[i], x[j] = x[j], x[i] }
|
|||
func (x ByTopo) Less(i, j int) bool {
|
||||
a := x[i]
|
||||
b := x[j]
|
||||
if a.Filename == a.Filename {
|
||||
if a.Filename == b.Filename {
|
||||
return a.StartLineno < b.StartLineno
|
||||
}
|
||||
return a.Filename < b.Filename
|
||||
|
|
Loading…
Reference in a new issue