]> Cypherpunks repositories - gostls13.git/commit
cmd/compile/internal/ssa: fix partsByVarOffset.Less method
authorIskander Sharipov <quasilyte@gmail.com>
Mon, 9 Jul 2018 20:08:22 +0000 (23:08 +0300)
committerBrad Fitzpatrick <bradfitz@golang.org>
Mon, 9 Jul 2018 22:44:34 +0000 (22:44 +0000)
commit7951d90bc6fab62b2baacdc985156c50f1063706
tree9c7ab63509c41a55aeeb02be8791b0c75417f6d6
parent94076feef53c41c0c558a8686d6f2650b1614414
cmd/compile/internal/ssa: fix partsByVarOffset.Less method

Fix duplicated index in LHS and RHS of the < operator.

Found using https://go-critic.github.io/overview#dupSubExpr-ref

Change-Id: I9a5a40bbd436b32e8117579a01bc50afe3608c97
Reviewed-on: https://go-review.googlesource.com/122776
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/compile/internal/ssa/debug.go