]> Cypherpunks repositories - gostls13.git/commit
[dev.typeparams] cmd/compile: simplify autotmpname
authorMatthew Dempsky <mdempsky@google.com>
Thu, 1 Jul 2021 07:28:05 +0000 (00:28 -0700)
committerMatthew Dempsky <mdempsky@google.com>
Thu, 1 Jul 2021 08:26:25 +0000 (08:26 +0000)
commit706c580ee1db800353752629882209ef6509a0b4
treee6c5d770ca5023d22d9360172ac1a910b9bfe052
parent372b31273539b988fe887d7b7cc2ed14439278e6
[dev.typeparams] cmd/compile: simplify autotmpname

Rather than manually formatting a byte-string and then using a map
lookup to convert it to string, we can just use a slice. This avoids
both the overhead of formatting the byte slice and the map lookup.

Change-Id: Ia7b883632ea990ce9ee848dd4b4e4cdfbd611212
Reviewed-on: https://go-review.googlesource.com/c/go/+/332191
Trust: Matthew Dempsky <mdempsky@google.com>
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Cuong Manh Le <cuong.manhle.vn@gmail.com>
src/cmd/compile/internal/typecheck/dcl.go