mirror of
https://github.com/golang/go.git
synced 2025-05-23 08:21:24 +00:00
cmd/compile/internal/ssa: simplify s = s <op> x
to s <op>= x
Change-Id: I366b89e35d194ca2a7eb97a8253497bd3fc2af94 Reviewed-on: https://go-review.googlesource.com/c/go/+/142019 Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Keith Randall <khr@golang.org>
This commit is contained in:
parent
d47526ed77
commit
9f85668a65
@ -134,15 +134,15 @@ func (t *RBTint32) DebugString() string {
|
|||||||
func (t *node32) DebugString() string {
|
func (t *node32) DebugString() string {
|
||||||
s := ""
|
s := ""
|
||||||
if t.left != nil {
|
if t.left != nil {
|
||||||
s = s + "["
|
s += "["
|
||||||
s = s + t.left.DebugString()
|
s += t.left.DebugString()
|
||||||
s = s + "]"
|
s += "]"
|
||||||
}
|
}
|
||||||
s = s + fmt.Sprintf("%v=%v:%d", t.key, t.data, t.rank)
|
s += fmt.Sprintf("%v=%v:%d", t.key, t.data, t.rank)
|
||||||
if t.right != nil {
|
if t.right != nil {
|
||||||
s = s + "["
|
s += "["
|
||||||
s = s + t.right.DebugString()
|
s += t.right.DebugString()
|
||||||
s = s + "]"
|
s += "]"
|
||||||
}
|
}
|
||||||
return s
|
return s
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user