]> Cypherpunks.ru repositories - gostls13.git/commit
[dev.regabi] cmd/compile: remove a couple CloneName calls
authorMatthew Dempsky <mdempsky@google.com>
Sun, 3 Jan 2021 08:53:51 +0000 (00:53 -0800)
committerMatthew Dempsky <mdempsky@google.com>
Sun, 3 Jan 2021 19:48:20 +0000 (19:48 +0000)
commit8fc44cf0fac5357f45cacc445c0900a8fd054bd5
tree8ee266e5d511430ec69a658680eddebe46587327
parent907a4bfdc75004bc31c30564734cffc61ab1e80c
[dev.regabi] cmd/compile: remove a couple CloneName calls

In inl.go, that code path is unused, since we added ir.BasicLit to
represent unnamed OLITERALs.

In race.go, rather than cloning ir.RegFP, we can just create it from
scratch again.

Passes toolstash -cmp (incl. w/ -race).

Change-Id: I8e063e4898d2acf056ceca5bc03df6b40a14eca9
Reviewed-on: https://go-review.googlesource.com/c/go/+/281192
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/inline/inl.go
src/cmd/compile/internal/walk/race.go