cmd/compile: rename (*Type).HasPointer to (*Type).HasHeapPointer

This method indicates whether a type contains any *heap* pointers, not
just whether it contains any pointers. Rename the method to make this
clear.

Change-Id: Ifff143e2f02a820444ac26b84250495c0098cb33
Reviewed-on: https://go-review.googlesource.com/67690
Run-TryBot: Austin Clements <austin@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
This commit is contained in:
Austin Clements 2017-10-02 17:31:43 -04:00
parent f47c8f130e
commit 70258cc59f
2 changed files with 3 additions and 3 deletions

View file

@ -17,7 +17,7 @@ func needwb(v *Value) bool {
if !ok {
v.Fatalf("store aux is not a type: %s", v.LongString())
}
if !t.HasPointer() {
if !t.HasHeapPointer() {
return false
}
if IsStackAddr(v.Args[0]) {