cmd/compile: replace all uses of ptrto by typPtr

This makes the overall naming and use of the functions
to create a Type more consistent.

Passes toolstash -cmp.

Change-Id: Ie0d40b42cc32b5ecf5f20502675a225038ea40e4
Reviewed-on: https://go-review.googlesource.com/38354
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
Martin Möhrmann 2017-03-19 09:51:22 +01:00 committed by Josh Bleecher Snyder
parent 00f4cacb49
commit 2805d20689
15 changed files with 103 additions and 107 deletions

View file

@ -535,7 +535,7 @@ func staticassign(l *Node, r *Node, out *[]*Node) bool {
*out = append(*out, nod(OAS, a, val))
}
ptr := nod(OADDR, a, nil)
n.Type = ptrto(val.Type)
n.Type = typPtr(val.Type)
gdata(&n, ptr, Widthptr)
}
@ -828,7 +828,7 @@ func slicelit(ctxt initContext, n *Node, var_ *Node, init *Nodes) {
}
// make new auto *array (3 declare)
vauto := temp(ptrto(t))
vauto := temp(typPtr(t))
// set auto to point at new temp or heap (3 assign)
var a *Node