mirror of
https://github.com/golang/go.git
synced 2025-05-31 23:25:39 +00:00
cmd/compile: remove tempname usages
CL 59610 merged tempname to tempAt, but some of comments and error message still refer to tempname. So changing to tempAt instead. Change-Id: I032f3bedc135d17124b0daaf22c97d0d5ada0a6f Reviewed-on: https://go-review.googlesource.com/c/go/+/193817 Run-TryBot: Cuong Manh Le <cuong.manhle.vn@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Matthew Dempsky <mdempsky@google.com>
This commit is contained in:
parent
b1a20253fe
commit
d535501a8e
@ -52,14 +52,14 @@ func autotmpname(n int) string {
|
||||
// make a new Node off the books
|
||||
func tempAt(pos src.XPos, curfn *Node, t *types.Type) *Node {
|
||||
if curfn == nil {
|
||||
Fatalf("no curfn for tempname")
|
||||
Fatalf("no curfn for tempAt")
|
||||
}
|
||||
if curfn.Func.Closure != nil && curfn.Op == OCLOSURE {
|
||||
Dump("tempname", curfn)
|
||||
Fatalf("adding tempname to wrong closure function")
|
||||
Dump("tempAt", curfn)
|
||||
Fatalf("adding tempAt to wrong closure function")
|
||||
}
|
||||
if t == nil {
|
||||
Fatalf("tempname called with nil type")
|
||||
Fatalf("tempAt called with nil type")
|
||||
}
|
||||
|
||||
s := &types.Sym{
|
||||
|
@ -1753,7 +1753,7 @@ func walkCall(n *Node, init *Nodes) {
|
||||
t = params.Field(i).Type
|
||||
}
|
||||
if instrumenting || fncall(arg, t) {
|
||||
// make assignment of fncall to tempname
|
||||
// make assignment of fncall to tempAt
|
||||
tmp := temp(t)
|
||||
a := nod(OAS, tmp, arg)
|
||||
a = convas(a, init)
|
||||
|
Loading…
x
Reference in New Issue
Block a user