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>
// 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{
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)