1
0
mirror of https://github.com/golang/go synced 2024-09-28 22:24:29 -06:00

cmd/compile/internal/ssa: adjust default to the end in *Block.AuxIntString

Change-Id: Id48cade7811e2dfbf78d3171fe202ad272534e37
GitHub-Last-Rev: ea6abb2dc2
GitHub-Pull-Request: golang/go#63808
Reviewed-on: https://go-review.googlesource.com/c/go/+/538377
Auto-Submit: Keith Randall <khr@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Bryan Mills <bcmills@google.com>
Reviewed-by: Keith Randall <khr@golang.org>
Reviewed-by: Keith Randall <khr@google.com>
This commit is contained in:
Jes Cok 2023-10-29 06:51:14 +00:00 committed by Gopher Robot
parent 3dea7c3f69
commit cbc403af1d

View File

@ -377,10 +377,10 @@ func (b *Block) AuxIntString() string {
return fmt.Sprintf("%v", int8(b.AuxInt))
case "uint8":
return fmt.Sprintf("%v", uint8(b.AuxInt))
default: // type specified but not implemented - print as int64
return fmt.Sprintf("%v", b.AuxInt)
case "": // no aux int type
return ""
default: // type specified but not implemented - print as int64
return fmt.Sprintf("%v", b.AuxInt)
}
}