]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/compile: remove tempname usages
authorCuong Manh Le <cuong.manhle.vn@gmail.com>
Fri, 6 Sep 2019 10:55:35 +0000 (17:55 +0700)
committerMatthew Dempsky <mdempsky@google.com>
Fri, 6 Sep 2019 16:59:11 +0000 (16:59 +0000)
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>
src/cmd/compile/internal/gc/gen.go
src/cmd/compile/internal/gc/walk.go

index 43d12925eb3b9c7c16220939b40b0b1ec4e3ca31..929653ebbd092fa3d86f5fc8e8a2862a51e6e447 100644 (file)
@@ -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{
index 1c445603d9b7205e5a291ee801205ca51315102b..0062dddc6c6e4550a58e8e0a5de58f4fdfbf1af9 100644 (file)
@@ -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)