diff options
author | Cherry Mui <cherryyz@google.com> | 2021-09-13 16:23:28 -0400 |
---|---|---|
committer | Cherry Mui <cherryyz@google.com> | 2021-09-16 19:12:07 +0000 |
commit | 48e2b1ea91171f4fcb56cc521368969e586f033f (patch) | |
tree | ac0118b363e32db94d6d74e1d6cb06b6cc373462 | |
parent | b1bedc0774d8a3a7ff8778e933ee92e8638e9493 (diff) | |
download | go-48e2b1ea91171f4fcb56cc521368969e586f033f.tar.gz go-48e2b1ea91171f4fcb56cc521368969e586f033f.zip |
cmd/compile: fix LocResults formatting
When a LocResults is an empty list, it currently prints as ">".
Make it print "<>".
Change-Id: I0f596791b471d74cd4bbc0059e269708c80592dd
Reviewed-on: https://go-review.googlesource.com/c/go/+/350144
Trust: Cherry Mui <cherryyz@google.com>
Run-TryBot: Cherry Mui <cherryyz@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: David Chase <drchase@google.com>
-rw-r--r-- | src/cmd/compile/internal/ssa/location.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/compile/internal/ssa/location.go b/src/cmd/compile/internal/ssa/location.go index 252c47cdeb..b575febd72 100644 --- a/src/cmd/compile/internal/ssa/location.go +++ b/src/cmd/compile/internal/ssa/location.go @@ -91,8 +91,8 @@ func (t LocPair) String() string { type LocResults []Location func (t LocResults) String() string { - s := "<" - a := "" + s := "" + a := "<" for _, r := range t { a += s s = "," |