mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
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:
parent
f47c8f130e
commit
70258cc59f
2 changed files with 3 additions and 3 deletions
|
|
@ -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]) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue