aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/compile/internal/ssa/writebarrier.go
diff options
context:
space:
mode:
authorAustin Clements <austin@google.com>2017-10-02 17:31:43 -0400
committerAustin Clements <austin@google.com>2017-10-03 13:40:06 +0000
commit70258cc59f587749ec02d3645687efe2ee85f53f (patch)
tree12a3f57c85c55a3ba7dc0cdc3245115ad215b07a /src/cmd/compile/internal/ssa/writebarrier.go
parentf47c8f130e4f5642cda5ee98741c2de25fde8b7e (diff)
downloadgo-70258cc59f587749ec02d3645687efe2ee85f53f.tar.gz
go-70258cc59f587749ec02d3645687efe2ee85f53f.zip
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>
Diffstat (limited to 'src/cmd/compile/internal/ssa/writebarrier.go')
-rw-r--r--src/cmd/compile/internal/ssa/writebarrier.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/compile/internal/ssa/writebarrier.go b/src/cmd/compile/internal/ssa/writebarrier.go
index 0daff45b43..129a06eecb 100644
--- a/src/cmd/compile/internal/ssa/writebarrier.go
+++ b/src/cmd/compile/internal/ssa/writebarrier.go
@@ -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]) {