]> Cypherpunks repositories - gostls13.git/commitdiff
src/cmd/compile/internal/ssa: replace `s = s + x' => 's += x'.
authorOlgaVlPetrova <OVPpetrova@gmail.com>
Sat, 13 Oct 2018 11:53:45 +0000 (14:53 +0300)
committerIan Lance Taylor <iant@golang.org>
Mon, 15 Oct 2018 04:19:20 +0000 (04:19 +0000)
Change-Id: I1f399a8a0aa200bfda01f97f920b1345e59956ba
Reviewed-on: https://go-review.googlesource.com/c/142057
Run-TryBot: Iskander Sharipov <iskander.sharipov@intel.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/cmd/compile/internal/ssa/sparsetree.go

index f7af85446ba700c79ec8771b52674d5ee6327e5c..546da8348d6a47f66a32106be9aa06d8cd8e7b5c 100644 (file)
@@ -98,9 +98,9 @@ func (t SparseTree) treestructure1(b *Block, i int) string {
        s := "\n" + strings.Repeat("\t", i) + b.String() + "->["
        for i, e := range b.Succs {
                if i > 0 {
-                       s = s + ","
+                       s += ","
                }
-               s = s + e.b.String()
+               s += e.b.String()
        }
        s += "]"
        if c0 := t[b.ID].child; c0 != nil {